/* ===== CTA FORM PAGE ===== */

/* Hero banner above form */
.cta-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    padding: 5rem 1.5rem 3rem;
    text-align: center;
    color: #fff;
}
.cta-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.cta-hero p {
    font-size: 1.125rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Form Container */
.cta-form {
    background-color: #f9fafb;
    padding: 0 1.5rem 4rem;
}
.form-container {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 56rem;
    margin: -2rem auto 0;
    position: relative;
    z-index: 1;
}

/* Form Title */
.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: #111827;
    margin-bottom: 0.5rem;
}
.form-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 2rem;
}
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form Field Styles */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}
.form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    width: 100%;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #111827;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Full-width fields */
.company-web,
.message-form {
    grid-column: 1 / -1;
}

/* Checkbox and Contact Method */
.contact-method-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}
.contact-method-wrapper label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #374151;
}
.form-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    accent-color: #2563eb;
    cursor: pointer;
}

/* Privacy Policy Section */
.justify-center {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}
.policy {
    font-size: 0.875rem;
    color: #374151;
}
.privacy-button {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}
.privacy-button:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-button {
    background-color: #d1d5db;
    color: #9ca3af;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    width: 100%;
    max-width: 20rem;
    text-align: center;
    border: none;
    cursor: not-allowed;
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
}
.submit-button:disabled {
    background-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}
.submit-button.active {
    background-color: #2563eb;
    color: #ffffff;
    cursor: pointer;
}
.submit-button.active:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Success / Error Messages */
.form-message {
    text-align: center;
    padding: 1.25rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    font-weight: 500;
    display: none;
}
.form-message.success {
    display: block;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.form-message.error {
    display: block;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Loading spinner on button */
.submit-button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}
.submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.25rem;
    height: 1.25rem;
    margin: -0.625rem 0 0 -0.625rem;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 767px) {
    .form-container {
        padding: 1.5rem;
        margin-top: -1.5rem;
    }
    .cta-hero {
        padding: 4rem 1rem 2.5rem;
    }
    .cta-hero h1 {
        font-size: 1.75rem;
    }
    .contact-method-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}
