/* forcing colors here instead of relying on theme defaults so the
   form stays readable regardless of what theme the site uses */

.resovista-form-wrap * {
    box-sizing: border-box;
}

.resovista-form-wrap {
    max-width: 720px;
    margin: 30px auto;
    padding: 0;
    border-radius: 12px;
    background: #ffffff !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    overflow: hidden;
    color: #1f2937 !important;
}

.resovista-header-band {
    background: #1a3a6b;
    padding: 20px 28px;
    text-align: center;
}

.resovista-title {
    text-align: center;
    color: #ffffff !important;
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.resovista-subtitle {
    text-align: center;
    color: #cdd8ea !important;
    font-size: 13px;
    margin-top: 4px;
}

.resovista-step {
    padding: 28px;
}

.resovista-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937 !important;
}

.resovista-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.resovista-row input {
    flex: 1;
}

/* Force light, readable inputs regardless of site theme (dark themes included) */
.resovista-form-wrap input[type="text"],
.resovista-form-wrap input[type="tel"],
.resovista-form-wrap input[type="email"],
.resovista-form-wrap input[type="date"],
.resovista-form-wrap select,
.resovista-form-wrap textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d5dbe3 !important;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 16px;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    -webkit-text-fill-color: #1f2937 !important;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
}

.resovista-section-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #1a3a6b !important;
    margin: 20px 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #e7ecf3;
}

.resovista-form-wrap p.resovista-section-title:first-child {
    margin-top: 0;
}

.resovista-field-row {
    display: flex;
    gap: 16px;
}

.resovista-field-half {
    flex: 1;
    min-width: 0;
}

@media (max-width: 560px) {
    .resovista-field-row {
        flex-direction: column;
        gap: 0;
    }
}

.resovista-declaration-box {
    background: #f7f9fc !important;
    border: 1px solid #e3e8f0;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 14px;
}

.resovista-declaration-box p {
    font-size: 12.5px;
    line-height: 1.6;
    color: #4b5563 !important;
    margin: 0 0 8px 0;
}

.resovista-declaration-box p:last-child {
    margin-bottom: 0;
}

.resovista-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 500 !important;
    color: #1f2937 !important;
    margin-bottom: 16px !important;
    cursor: pointer;
}

.resovista-checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 3px 0 0 0 !important;
    flex-shrink: 0;
    accent-color: #1a3a6b;
}

.resovista-form-wrap input::placeholder,
.resovista-form-wrap textarea::placeholder {
    color: #9aa4b2 !important;
    opacity: 1;
}

.resovista-form-wrap input:focus,
.resovista-form-wrap textarea:focus {
    outline: none;
    border-color: #1a3a6b !important;
    box-shadow: 0 0 0 3px rgba(26,58,107,0.12) !important;
}

.resovista-form-wrap label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: #374151 !important;
}

.resovista-btn {
    background: #1a3a6b !important;
    color: #ffffff !important;
    border: none;
    padding: 11px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.resovista-btn:hover {
    background: #142d54 !important;
}

.resovista-btn-full {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
}

.resovista-msg {
    font-size: 13px;
    margin-top: 6px;
    margin-bottom: 10px;
}

.resovista-error {
    color: #c0392b !important;
}

.resovista-success {
    color: #1e7e34 !important;
}

.resovista-resend {
    font-size: 12px;
    margin-top: 4px;
    color: #6b7280 !important;
}

.resovista-verified-badge {
    background: #e6f4ea !important;
    color: #1e7e34 !important;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 14px;
}

.resovista-success-box {
    text-align: center;
    background: #fff8e6 !important;
    border: 1px solid #f0d99b;
    padding: 24px;
    border-radius: 8px;
    color: #1f2937 !important;
}

.resovista-success-box h3 {
    color: #1a3a6b !important;
    margin-top: 0;
}

.resovista-success-box p {
    color: #374151 !important;
}
