/* ==========================================================================
   CONTACT FORM STYLES
   Following the same design system as business_contact_form.css
   ========================================================================== */

.contact-page {
    background-color: var(--gray-50);
}

/* Contact Section - Matching business_contact_form.css flexible style */
.contact-section {
    background: var(--gray-50);
    padding: var(--spacing-3xl) 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-left {
    max-width: 500px;
}

.contact-title {
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-4xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.contact-question {
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-2xl);
    color: var(--primary-color);
    line-height: 1.25;
    margin-bottom: var(--spacing-lg);
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.02em;
}

.contact-description {
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-base);
    color: var(--primary-color);
    line-height: 1.375;
    margin-bottom: 16px;
    font-weight: var(--font-weight-semibold);
    letter-spacing: -0.02em;
}

.highlight-text {
    color: #F36669;
    font-weight: 700;
}

.contact-form-container {
    background-color: var(--white);
    border-radius: var(--border-radius-3xl);
    padding: var(--spacing-3xl);
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.form-title {
    font-family: var(--font-family-secondary);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.contact-form {
    width: 100%;
}

/* Override main styles.css for contact form */
.contact-form .form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: var(--spacing-md) !important;
    margin-bottom: var(--spacing-md) !important;
    width: 100%;
    align-items: start;
}

.contact-form .form-row .form-group {
    margin-bottom: 0 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Special styling for checkbox group in form row */
.contact-form .form-row .checkbox-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

/* Special styling for form actions in form row */
.contact-form .form-row .form-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hide empty form groups in rows */
.form-row .form-group:empty {
    display: none;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: #053a49;
    margin-bottom: var(--spacing-sm);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    background-color: #f8f8f8;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
    color: var(--black);
    transition: all var(--transition-normal);
    height: 44px;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.form-input::placeholder {
    color: var(--gray-500);
}

/* Select dropdown specific styling */
.contact-form select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Override forms.css email input padding and icon */
.contact-form input[type="email"].form-input {
    padding-left: 16px !important;
    background-image: none !important;
}

/* Textarea specific styling */
.form-input[type="textarea"],
textarea.form-input {
    height: auto;
    min-height: 120px;
    resize: vertical;
    padding: 12px;
    background-color: #f8f8f8;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
}

.checkbox-group {
    margin-top: 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

/* Override tender-form.css checkbox styles for contact form */
.contact-page .contact-form input[type="checkbox"] {
    margin: 0 !important;
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
    border: 1px solid #e4e4e4 !important;
    background-color: #f8f8f8 !important;
    background-image: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    transition: all var(--transition-normal) !important;
    position: relative !important;
}

.contact-page .contact-form input[type="checkbox"]:checked {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    background-image: url('/static/icons/checkbox-checked-dark.svg') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.contact-page .contact-form input[type="checkbox"]:checked::after {
    display: none !important;
    content: none !important;
}

.contact-page .contact-form input[type="checkbox"]:hover {
    transform: none !important;
    border-color: #71AB90 !important;
    background-color: #FFFFFF !important;
}

.checkbox-label {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
    color: var(--black);
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-actions {
    text-align: center;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-large {
    padding: 16px 32px;
    font-size: var(--font-size-base);
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-family: var(--font-family-primary);
    font-weight: 500;
    transition: all var(--transition-normal);
}

.btn-large:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.error-message {
    color: var(--accent-color);
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-xs);
    font-family: var(--font-family-primary);
}

.messages {
    margin-bottom: var(--spacing-lg);
}

.message {
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
}

.message-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.message-success::before {
    content: "i";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #065f46;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.message-error {
    background-color: var(--error-light);
    color: var(--error-text);
    border: 1px solid var(--error-border);
}

.section-divider {
    border: none;
    border-top: 1px solid #E4E4E4;
    width: 60%;
    margin: 1rem auto;
}

/* Mobile Responsive - Matching business_contact_form.css flexible breakpoints */

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .contact-left {
        max-width: 100%;
    }

    .contact-title {
        font-size: var(--font-size-3xl);
    }

    .form-title {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }

    .contact-form .form-row .form-group {
        margin-bottom: var(--spacing-lg) !important;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    /* Additional mobile styles can be added here if needed */
}
