/* RC Lead Form Styles */
.rc-lead-form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rc-lead-form {
    width: 100%;
}

.rc-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.rc-form-section {
    display: grid;
    gap: 20px;
}

/* Contact info grid */
.rc-form-section:first-child {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Full width fields */
.rc-form-field.full-width,
.rc-form-section.full-width {
    grid-column: 1 / -1;
}

/* Loan fields section */
.rc-form-section.loan-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.rc-form-field {
    position: relative;
    margin-bottom: 20px;
}

.rc-form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--rc-navy);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 16px;
}

.rc-form-field input,
.rc-form-field select,
.rc-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    background: #F9FAFB;
    color: var(--rc-navy);
    font-family: var(--font-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.rc-form-field input:focus,
.rc-form-field select:focus,
.rc-form-field textarea:focus {
    outline: none;
    border-color: var(--rc-teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--rc-teal-rgb), 0.1);
}

.rc-form-field input::placeholder,
.rc-form-field textarea::placeholder {
    color: #9CA3AF;
}

.rc-form-field 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='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.rc-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.rc-form-field.error input,
.rc-form-field.error select,
.rc-form-field.error textarea {
    border-color: #EF4444;
    background: #FEF2F2;
}

.error-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    color: #EF4444;
    font-size: 14px;
    font-family: var(--font-primary);
}

button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 14px 28px;
    background: #007A77; /* Darker teal for WCAG AA contrast (4.5:1) */
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
    background: var(--rc-navy);
    transform: translateY(-1px);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"].loading {
    opacity: 0.8;
    cursor: not-allowed;
}

button[type="submit"].loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.rc-form-success {
    text-align: center;
    padding: 40px 20px;
}

.rc-form-success h3 {
    color: var(--rc-navy);
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.rc-form-success p {
    color: var(--rc-navy);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.8;
}

/* Responsive styles */
@media (max-width: 768px) {
    .rc-form-section:first-child,
    .rc-form-section.loan-fields {
        grid-template-columns: 1fr;
    }
    
    .rc-lead-form-wrapper {
        padding: 20px;
    }
} 