/* ================================
   WebCoreVital Form – Premium UI
   ================================ */

.webcorevital-form {
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
}

/* Ensure predictable sizing */
.webcorevital-form *,
.webcorevital-form *::before,
.webcorevital-form *::after {
    box-sizing: border-box;
}

/* Form row container */
.webcorevital-form .wcv-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Form field wrapper */
.webcorevital-form .wcv-field {
    display: flex;
    flex-direction: column;
}

/* Form row spacing */
.webcorevital-form .wcv-field,
.webcorevital-form .form-row,
.webcorevital-form > div {
    margin-bottom: 22px;
}

/* Labels */
.webcorevital-form label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #0b1f3a;
    margin-bottom: 8px;
}

/* Inputs */
.webcorevital-form input,
.webcorevital-form select,
.webcorevital-form textarea {
    width: 100%;
    padding: 16px 18px;
    font-size: 15px;
    border-radius: 14px;
    border: 1px solid #e4e8f0;
    background: #ffffff;
    transition: all 0.25s ease;
    outline: none;
}

/* Placeholder */
.webcorevital-form ::placeholder {
    color: #8a94a6;
}

/* Focus state */
.webcorevital-form input:focus,
.webcorevital-form select:focus,
.webcorevital-form textarea:focus {
    border-color: #0b1f3a;
    box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.08);
}

/* Textarea */
.webcorevital-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* Select arrow fix */
.webcorevital-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%230b1f3a' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 12px;
}

/* Required star */
.wcv-required {
    color: #c8102e;
    margin-left: 4px;
}

/* Button */
.webcorevital-form button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0b1f3a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Button hover */
.webcorevital-form button:hover {
    background: #09172b;
    transform: translateY(-1px);
}

/* Button active */
.webcorevital-form button:active {
    transform: translateY(0);
}

/* Disabled button */
.webcorevital-form button[disabled] {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Response message */
.wcv-form-response {
    margin-top: 14px;
    font-size: 14px;
    color: #0b1f3a;
}

/* Helper text below button */
.webcorevital-form .wcv-helper-text {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

/* ================================
   Grid Width System (Premium)
   ================================ */

.wcv-col-100 { width: 100%; }
.wcv-col-50  { width: calc(50% - 10px); }
.wcv-col-33  { width: calc(33.333% - 14px); }
.wcv-col-25  { width: calc(25% - 15px); }

/* Horizontal layout refinement */
.wcv-layout-horizontal .wcv-form-row {
    align-items: flex-start;
}

/* ================================
   Mobile Optimization
   ================================ */

@media (max-width: 768px) {
    .wcv-col-50,
    .wcv-col-33,
    .wcv-col-25 {
        width: 100%;
    }
}

/* ================================
   Loading Spinner
   ================================ */

.wcv-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: wcv-spin 0.8s linear infinite;
}

@keyframes wcv-spin {
    to {
        transform: rotate(360deg);
    }
}
