/* Contact Page Specific Styles */

/* Main Content */
.page-container {
    padding-top: 100px;
    min-height: 100vh;
}

/* Contact Hero */
.contact-hero {
    background: linear-gradient(135deg, var(--beige), white);
    padding: 120px 0 2.5rem;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Container */
.contact-container {
    padding: 4rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Form Section */
.contact-form-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    height: fit-content;
}

.form-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--english-red);
    box-shadow: 0 0 0 3px rgba(160, 82, 79, 0.1);
}

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

.form-select {
    cursor: pointer;
    /* Fix iOS/Safari blue text color */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: var(--text-dark);
    color: #2C2C2C;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C2C2C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
    padding-right: 3rem;
}

/* Ensure option text is also dark */
.form-select option {
    color: var(--text-dark);
    color: #2C2C2C;
    background-color: white;
}

/* Additional iOS fixes */
@supports (-webkit-touch-callout: none) {
    .form-select {
        color: #2C2C2C !important;
        -webkit-text-fill-color: #2C2C2C !important;
        opacity: 1 !important;
    }
}

/* Checkbox Styling */
.checkbox-group {
    margin: 1rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.form-checkbox {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.form-checkbox:checked + .checkbox-custom {
    background: var(--english-red);
    border-color: var(--english-red);
}

.form-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, var(--english-red), #8B4340);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(160, 82, 79, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Contact Information Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-gray);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--english-red), #8B4340);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.contact-details a {
    color: var(--english-red);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item.active {
    background: var(--beige);
    border-radius: 15px;
    padding: 0 1.5rem;
    margin: 1rem 0;
    border: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--english-red);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--english-red);
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    padding: 0 0 1.5rem 0;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--english-red);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Social Section */
.social-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.social-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--beige);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background: var(--english-red);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(160, 82, 79, 0.3);
}

.social-link .social-icon {
    font-size: 1.5rem;
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.modal-body p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-close-btn {
    background: var(--english-red);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: #8B4340;
    transform: translateY(-2px);
}

/* Active nav link */
.nav-link.active {
    color: var(--english-red);
}
.nav-logo {
    text-decoration: none !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 2rem;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-section {
        padding: 2rem;
        order: 1;
    }
    
    .contact-info-section {
        order: 2;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-hero {
        padding: 80px 0 1.5rem;
    }
    
    .contact-container {
        padding: 2rem 0;
    }
    
    .contact-card,
    .faq-section,
    .social-section {
        padding: 2rem;
    }
    
    .social-links {
        grid-template-columns: 1fr;
    }
    
    /* Center contact details on mobile */
    .contact-item {
        align-items: center;
    }
    
    .contact-details {
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-details h4 {
        text-align: center;
        width: 100%;
    }
    
    .contact-details p {
        text-align: center;
        width: 100%;
    }
    
    .modal-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .contact-card,
    .faq-section,
    .social-section {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-icon {
        align-self: center;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1rem 0;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .social-section,
    .modal {
        display: none;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-hero {
        background: white !important;
        padding: 2rem 0;
    }
    
    .contact-form-section,
    .contact-card,
    .faq-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .page-container {
        padding-top: 0;
    }
    
    .submit-btn {
        display: none;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.submit-btn:disabled {
    animation: pulse 1.5s infinite;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .submit-btn,
    .social-link,
    .modal-content,
    .faq-icon {
        transition: none;
        animation: none;
    }
    
    .submit-btn:hover,
    .social-link:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
.submit-btn:focus,
.social-link:focus,
.modal-close-btn:focus {
    outline: 2px solid var(--english-red);
    outline-offset: 2px;
}

.faq-question:focus {
    outline: none;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .contact-form-section,
    .contact-card,
    .faq-section,
    .social-section {
        border: 2px solid var(--text-dark);
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        border-color: var(--text-dark);
    }
    
    .checkbox-custom {
        border-color: var(--text-dark);
    }
}

/* Form validation styles */
.form-input:invalid,
.form-select:invalid,
.form-textarea:invalid {
    border-color: #ab4b52;
}

.form-input:valid,
.form-select:valid,
.form-textarea:valid {
    border-color: #27ae60;
}

/* Success state for form elements */
.form-group.success .form-input,
.form-group.success .form-select,
.form-group.success .form-textarea {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

/* Error state for form elements */
.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}
