/* 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: 520px;
    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 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-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;
}
