/* Modern Contact Page Styles - Enhanced Tokyo Night Theme */

/* ==================== Hero Section ==================== */
.main_contact {
    min-height: 50vh;
    position: relative;
    overflow: hidden;
}

.main_contact .main__badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.main_contact .main__title {
    margin-bottom: 2rem;
    line-height: 1.3;
}

/* ==================== Contact Section ==================== */
.contact-section {
    padding: 4rem 0;
    position: relative;
}

.contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Form */
.contact__form-wrapper {
    padding: 3rem;
}

.contact__form-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.contact__form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Button Form Group */
.form-group button[type="submit"] {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 2rem;
    box-sizing: border-box;
    display: block !important; /* Override glass-button inline-flex */
}

/* Override glass-button styles for form submit */
.contact__form-wrapper .glass-button[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Social Links SVG Icons */

.form-group label.required::after {
    content: ' *';
    color: var(--accent-pink);
}

/* Glass Input Styles */
.glass-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-standard);
    -webkit-backdrop-filter: var(--blur-standard);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.glass-input:hover {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1),
                0 0 20px rgba(124, 58, 237, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.glass-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.8;
}

/* Textarea specific */
textarea.glass-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* Form Response */
.form-response {
    margin-top: 2rem;
    text-align: center;
}

.success-message,
.error-message {
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-icon,
.error-icon {
    display: block;
    margin-bottom: 1rem;
}

.success-icon .icon-glow {
    font-size: 3rem;
    filter: drop-shadow(0 0 20px var(--accent-green));
}

.success-message h3,
.error-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.success-message p,
.error-message p {
    color: var(--text-secondary);
}

.error-message a {
    color: var(--accent-pink);
    text-decoration: underline;
}

/* Contact Information */
.contact__info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__info-card {
    padding: 3rem;
}

.contact__info-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact__info-text {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Contact Methods */
.contact__methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-method:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.contact-method__icon {
    flex-shrink: 0;
}

.contact-method__icon .icon-glow {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 15px currentColor);
}

.contact-method__content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-method__content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Social Links */
.contact__social-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    color: var(--tn-text-primary) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    overflow: visible !important; /* Override glass-button overflow */
}

.social-link svg,
.social-link i {
    width: 24px;
    height: 24px;
    fill: #ffffff !important;
    color: #ffffff !important;
    font-size: 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.social-link svg path {
    fill: #ffffff !important;
}

.social-link:hover {
    transform: translateY(-5px);
    color: #7dcfff !important;
    background: rgba(125, 207, 255, 0.2);
    border-color: rgba(125, 207, 255, 0.5);
}

.social-link:hover svg,
.social-link:hover i {
    fill: #7dcfff !important;
    color: #7dcfff !important;
    transform: scale(1.1);
}

.social-link:hover svg path {
    fill: #7dcfff !important;
}

/* Form Submit Button Fix */
.contact__form button[type="submit"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Office Hours */
.contact__hours {
    padding: 2rem;
}

/* Full Width Office Hours */
.contact__hours-full {
    padding: 2.5rem;
    margin-top: 2rem;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--blur-standard);
    -webkit-backdrop-filter: var(--blur-standard);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.hours-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Full Width Hours List */
.contact__hours-full .hours-list {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact__hours-full .hours-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
}

.contact__hours-full .hours-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact__hours-full .hours-item .day {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact__hours-full .hours-item .time {
    color: var(--text-secondary);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.hours-item:last-child {
    border-bottom: none;
}

.day {
    font-weight: 500;
    color: var(--text-primary);
}

.time {
    color: var(--text-secondary);
}

.hours-note {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Map Section */
.map {
    padding: 4rem 0;
    position: relative;
    background: var(--bg-secondary);
}

.map__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.map__header {
    text-align: center;
    margin-bottom: 3rem;
}

.map__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.map__subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.map__wrapper {
    padding: 1rem;
    overflow: hidden;
}

.map__wrapper iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 16px;
    filter: grayscale(1) contrast(1.1) opacity(0.8);
    transition: filter 0.3s ease;
}

.map__wrapper:hover iframe {
    filter: grayscale(0.5) contrast(1) opacity(1);
}

/* CTA Section */
.cta {
    padding: 4rem 0 6rem;
    position: relative;
}

.cta__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cta__content {
    padding: 4rem;
    text-align: center;
}

.cta__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta__text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Loading State */
.button.loading {
    position: relative;
    color: transparent;
}

.button.loading .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .contact__form-wrapper,
    .contact__info-card {
        padding: 2rem;
    }
    
    .contact__hours-full {
        padding: 2rem;
    }
    
    .contact__hours-full .hours-list {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .contact__hours-full .hours-item {
        min-width: 200px;
        width: 100%;
        max-width: 300px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact__form-title,
    .contact__info-title {
        font-size: 1.75rem;
    }
    
    .cta__content {
        padding: 3rem 2rem;
    }
    
    .cta__title,
    .map__title {
        font-size: 2rem;
    }
    
    .cta__text {
        font-size: 1.1rem;
    }
    
    .cta__actions {
        flex-direction: column;
    }
    
    .cta__actions .button {
        width: 100%;
    }
    
    .map__wrapper iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .contact__form-wrapper,
    .contact__info-card {
        padding: 1.5rem;
    }
    
    .contact__form-title,
    .contact__info-title {
        font-size: 1.5rem;
    }
    
    .glass-input {
        padding: 0.875rem 1rem;
    }
    
    .contact__hours {
        padding: 1.5rem;
    }
    
    .hours-title {
        font-size: 1.25rem;
    }
    
    .map__wrapper iframe {
        height: 300px;
    }
}

/* ==================== Animation Enhancements ==================== */
.contact__form-wrapper,
.contact__info-card,
.contact__hours {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.contact__form-wrapper { animation-delay: 0.1s; }
.contact__info-card { animation-delay: 0.2s; }
.contact__hours { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus Visible for Accessibility */
.glass-input:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

.button:focus-visible,
.social-link:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}