/* Contact Page Styles */

/* Contact Hero Section */
.contact-hero {
    position: relative;
    padding: 8rem 0 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.contact-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.contact-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(29, 78, 216, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
}

.contact-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.contact-hero-particles .particle {
    position: absolute;
    background: linear-gradient(45deg, rgba(29, 78, 216, 0.1), rgba(59, 130, 246, 0.1));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.contact-hero-particles .particle:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.contact-hero-particles .particle:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.contact-hero-particles .particle:nth-child(3) {
    width: 50px;
    height: 50px;
    top: 40%;
    right: 10%;
    animation-delay: 4s;
}

.contact-hero-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-hero-content {
    text-align: center;
    max-width: 50rem;
    margin: 0 auto;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d4ed8;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.1);
}

.contact-badge i {
    font-size: 1rem;
}

.contact-hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #1e293b;
    margin: 0 0 1.5rem 0;
}

.contact-hero-title .title-highlight {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    margin: 0;
}

/* Contact Content Section */
.contact-content {
    padding: 6rem 0;
    background: linear-gradient(135deg, oklch(0.99 0 0), oklch(0.97 0 0));
}

.contact-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 4rem;
    }
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.form-header p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.form-group label i {
    color: #1d4ed8;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    font-family: 'Instrument Sans', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
}

.error-message {
    font-size: 0.875rem;
    color: #ef4444;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.char-count {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
}

/* Checkbox Group */
.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 0.375rem;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
}

.checkbox-text {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
}

/* Submit Button */
.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 64, 175, 0.4);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.submit-button.loading .button-text,
.submit-button.loading i {
    display: none;
}

.submit-button.loading .button-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Status */
.form-status {
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.form-status.success {
    display: flex;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-status.error {
    display: flex;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Contact Info Sidebar */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(29, 78, 216, 0.15);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.3);
}

.info-card-icon i {
    font-size: 1.5rem;
    color: white;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.info-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 1rem 0;
}

.info-card p a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-card p a:hover {
    color: #1e40af;
}

.info-subtitle {
    display: block;
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-link:hover {
    color: #1e40af;
    gap: 0.75rem;
}

/* Social Card */
.social-card .social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(29, 78, 216, 0.1);
    border: 2px solid rgba(29, 78, 216, 0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1d4ed8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

/* Hours Card */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.hours-item span:first-child {
    font-weight: 600;
    color: #334155;
}

.hours-item span:last-child {
    color: #64748b;
}

/* Map Section */
.map-section {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(20%);
}

.map-overlay {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    pointer-events: none;
}

.map-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    pointer-events: auto;
}

.map-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.map-info p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.5rem 0;
}

.map-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.map-button:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, oklch(0.98 0 0), oklch(0.96 0 0));
}

.faq-container {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 0.75rem 0;
}

.faq-header p {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(29, 78, 216, 0.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #1d4ed8;
}

.faq-question i {
    font-size: 0.875rem;
    color: #64748b;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: #1d4ed8;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
}

/* Dark Mode Styles */
.dark .contact-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.dark .contact-hero-gradient {
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(147, 197, 253, 0.1) 0%, transparent 50%);
}

.dark .contact-badge {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.dark .contact-hero-title {
    color: #f1f5f9;
}

.dark .contact-hero-title .title-highlight {
    background: linear-gradient(135deg, #60a5fa, #93c5fd, #dbeafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark .contact-hero-description {
    color: #cbd5e1;
}

.dark .contact-content {
    background: linear-gradient(135deg, oklch(0.16 0 0), oklch(0.13 0 0));
}

.dark .contact-form-wrapper,
.dark .info-card {
    background: rgba(24, 24, 27, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark .form-header h2,
.dark .info-card h3,
.dark .faq-header h2,
.dark .faq-question {
    color: #f1f5f9;
}

.dark .form-header p,
.dark .info-card p,
.dark .faq-header p,
.dark .faq-answer p {
    color: #cbd5e1;
}

.dark .form-group label {
    color: #e2e8f0;
}

.dark .form-group input,
.dark .form-group select,
.dark .form-group textarea {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.dark .form-group input:focus,
.dark .form-group select:focus,
.dark .form-group textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.dark .checkbox-custom {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.dark .social-link {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.dark .social-link:hover {
    background: #60a5fa;
    color: #1e293b;
}

.dark .hours-item {
    background: rgba(15, 23, 42, 0.5);
}

.dark .hours-item span:first-child {
    color: #e2e8f0;
}

.dark .hours-item span:last-child {
    color: #94a3b8;
}

.dark .map-info {
    background: rgba(24, 24, 27, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .map-info h3 {
    color: #f1f5f9;
}

.dark .map-info p {
    color: #cbd5e1;
}

.dark .faq-section {
    background: linear-gradient(135deg, oklch(0.15 0 0), oklch(0.12 0 0));
}

.dark .faq-item {
    background: rgba(24, 24, 27, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .faq-question:hover {
    color: #60a5fa;
}

.dark .faq-item.active .faq-question i {
    color: #60a5fa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-hero {
        padding: 6rem 0 3rem 0;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .map-overlay {
        position: static;
        padding: 1rem;
    }

    .map-info {
        max-width: 100%;
    }
}

/* Required field asterisk */
.required {
    color: #ef4444;
    font-weight: 600;
}

/* Message info row */
.message-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

.word-count {
    font-size: 0.75rem;
    color: #94a3b8;
}

#word-count {
    font-weight: 600;
    transition: color 0.2s ease;
}

/* International Telephone Input Styles */
.iti {
    width: 100%;
}

.iti__country-list {
    max-height: 250px;
    font-family: inherit;
    z-index: 1000;
}

.iti__country-name {
    font-size: 0.9rem;
}

.iti__dial-code {
    color: #64748b;
}

.iti__selected-dial-code {
    font-size: 0.9rem;
    color: #334155;
}

.iti--separate-dial-code .iti__selected-flag {
    background-color: #f8fafc;
    border-radius: 0.75rem 0 0 0.75rem;
}

.iti__search-input {
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.iti__search-input:focus {
    border-color: #1d4ed8;
    outline: none;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.25);
}

/* Dark mode intl-tel-input */
.dark .iti--separate-dial-code .iti__selected-flag {
    background-color: rgba(15, 23, 42, 0.8);
}

.dark .iti__selected-dial-code {
    color: #e2e8f0;
}

.dark .iti__country-list {
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .iti__country {
    color: #e2e8f0;
}

.dark .iti__country:hover {
    background-color: rgba(59, 130, 246, 0.2);
}

.dark .iti__search-input {
    background-color: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

/* Form validation styles */
.was-validated .form-group input:invalid,
.was-validated .form-group select:invalid,
.was-validated .form-group textarea:invalid {
    border-color: #ef4444;
}

.was-validated .form-group input:valid,
.was-validated .form-group select:valid,
.was-validated .form-group textarea:valid {
    border-color: #22c55e;
}