/* ==========================================================================
   Mobile Contact Page Styles - Completely Independent with m-contact-* prefix
   ========================================================================== */

/* ---------------------------------- */
/* 1. Global Setup & Configuration    */
/* ---------------------------------- */
:root {
    --m-contact-color-background: #0a0a0a;
    --m-contact-color-text-primary: #ffffff;
    --m-contact-color-text-secondary: #a0aec0;
    --m-contact-color-text-tertiary: #718096;
    --m-contact-color-border: #2d3748;
    --m-contact-color-border-dark: #1a202c;
    --m-contact-font-main: 'Pretendard', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.m-contact-page {
    font-family: var(--m-contact-font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--m-contact-color-background);
    color: var(--m-contact-color-text-primary);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body.m-contact-mobile-nav-is-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------------------------------- */
/* 2. Animations & Helpers            */
/* ---------------------------------- */
@keyframes m-contact-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.m-contact-fade-in {
    animation: m-contact-fadeIn 1s ease-out forwards;
}

.m-contact-fade-in--delay {
    animation-delay: 0.2s;
}

.m-contact-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.m-contact-reveal.m-contact-is-visible {
    opacity: 1;
    transform: translateY(0);
}

.m-contact-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ---------------------------------- */
/* 3. Header & Mobile Navigation      */
/* ---------------------------------- */
.m-contact-page-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 1000;
}

.m-contact-page-header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m-contact-page-header__logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 1001;
}

.m-contact-nav-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
    cursor: pointer;
}

.m-contact-nav-toggle__icon {
    width: 28px;
    height: 28px;
    color: var(--m-contact-color-text-primary);
}

.m-contact-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--m-contact-color-background);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.m-contact-mobile-nav.m-contact-is-open {
    transform: translateX(0);
}

.m-contact-mobile-nav__close-button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.m-contact-mobile-nav__links {
    list-style: none;
    text-align: center;
    padding: 0;
}

.m-contact-mobile-nav__item {
    margin: 2rem 0;
}

.m-contact-mobile-nav__link {
    font-size: 2rem;
    font-weight: 500;
    color: var(--m-contact-color-text-secondary);
    transition: color 0.3s;
}

.m-contact-mobile-nav__link.m-contact-is-active {
    color: var(--m-contact-color-text-primary);
}

/* ---------------------------------- */
/* 4. Section Header Component        */
/* ---------------------------------- */
.m-contact-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.m-contact-section-header__title {
    font-size: 2rem;
    font-weight: 600;
}

.m-contact-section-header__description {
    margin-top: 1rem;
    color: var(--m-contact-color-text-secondary);
    max-width: 42rem;
    margin: 1rem auto 0;
    line-height: 1.7;
}

/* ---------------------------------- */
/* 5. Contact Hero Section            */
/* ---------------------------------- */
.m-contact-hero {
    min-height: 45vh;
    display: flex;
    align-items: flex-end;
    padding: 2rem 1.5rem;
    background-image: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.8) 50%, rgba(10,10,10,0) 100%), url('https://images.unsplash.com/photo-1543287799-835e3602d321?q=80&w=1974&auto=format&fit=crop');
    background-size: cover;
    background-position: center 30%;
}

.m-contact-hero__title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: 20ch;
}

/* ---------------------------------- */
/* 6. Main Contact Section            */
/* ---------------------------------- */
.m-contact-main {
    padding: 4rem 0;
}

.m-contact-main__grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.m-contact-info__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--m-contact-color-border);
}

.m-contact-info__item {
    margin-bottom: 1.5rem;
}

.m-contact-info__label {
    font-size: 0.875rem;
    color: var(--m-contact-color-text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.m-contact-info__value {
    font-size: 1rem;
    color: var(--m-contact-color-text-secondary);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.m-contact-info__value a {
    transition: color 0.3s;
}

.m-contact-info__value a:hover {
    color: var(--m-contact-color-text-primary);
}

/* ---------------------------------- */
/* 7. Contact Form                    */
/* ---------------------------------- */
.m-contact-form__group {
    margin-bottom: 1.5rem;
}

.m-contact-form__label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--m-contact-color-text-secondary);
}

.m-contact-form__input {
    width: 100%;
    padding: 1rem;
    background-color: transparent;
    border: 1px solid var(--m-contact-color-border);
    border-radius: 0.25rem;
    color: var(--m-contact-color-text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.m-contact-form__input:focus {
    outline: none;
    border-color: var(--m-contact-color-text-secondary);
}

.m-contact-form__submit {
    display: inline-block;
    background-color: var(--m-contact-color-text-primary);
    color: var(--m-contact-color-background);
    padding: 1rem 2rem;
    border: 1px solid var(--m-contact-color-text-primary);
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1rem;
    cursor: pointer;
    font-family: inherit;
}

.m-contact-form__message {
    margin-top: 1.5rem;
    color: var(--m-contact-color-text-secondary);
    opacity: 0;
    transition: opacity 0.5s;
}

/* ---------------------------------- */
/* 8. Prepare Section                 */
/* ---------------------------------- */
.m-contact-prepare {
    padding: 4rem 0;
    border-top: 1px solid var(--m-contact-color-border);
    border-bottom: 1px solid var(--m-contact-color-border);
}

.m-contact-prepare__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.m-contact-prepare-item {
    text-align: center;
}

.m-contact-prepare-item__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    color: var(--m-contact-color-text-secondary);
}

.m-contact-prepare-item__title {
    font-weight: 500;
    font-size: 1rem;
}

/* ---------------------------------- */
/* 9. Map Section                     */
/* ---------------------------------- */
.m-contact-map-section {
    padding: 4rem 0;
}

.m-contact-map__grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.m-contact-map__wrapper {
    width: 100%;
    height: 300px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.m-contact-map__iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.m-contact-directions__item {
    margin-bottom: 1.5rem;
}

.m-contact-directions__label {
    font-size: 0.875rem;
    color: var(--m-contact-color-text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.m-contact-directions__value {
    font-size: 1rem;
    color: var(--m-contact-color-text-secondary);
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* ---------------------------------- */
/* 10. FAQ Section                    */
/* ---------------------------------- */
.m-contact-faq {
    padding: 4rem 0;
    border-top: 1px solid var(--m-contact-color-border);
}

.m-contact-faq__item {
    border-bottom: 1px solid var(--m-contact-color-border);
}

.m-contact-faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background: none;
    border: none;
    color: var(--m-contact-color-text-primary);
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.m-contact-faq__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.4s ease;
}

.m-contact-faq__item.m-contact-is-active .m-contact-faq__icon {
    transform: rotate(45deg);
}

.m-contact-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.m-contact-faq__item.m-contact-is-active .m-contact-faq__answer {
    padding-bottom: 1.5rem;
}

.m-contact-faq__answer-content {
    color: var(--m-contact-color-text-secondary);
    line-height: 1.8;
    margin: 0;
}

/* ---------------------------------- */
/* 11. Our Space Section              */
/* ---------------------------------- */
.m-contact-our-space {
    padding: 3rem 0;
}

.m-contact-our-space__grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.m-contact-our-space__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* ---------------------------------- */
/* 12. Footer                         */
/* ---------------------------------- */
.m-contact-page-footer {
    padding: 5rem 0 2rem;
    text-align: center;
}

.m-contact-page-footer__container {
    text-align: center;
}

.m-contact-page-footer__email-link {
    display: inline-block;
    margin-top: 2rem;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--m-contact-color-text-tertiary);
    transition: border-color 0.3s;
}

.m-contact-page-footer__email-link:hover {
    border-color: var(--m-contact-color-text-primary);
}

.m-contact-page-footer__bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--m-contact-color-border-dark);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.m-contact-page-footer__socials {
    display: flex;
    gap: 1rem;
}

.m-contact-page-footer__socials-link {
    transition: color 0.3s;
    color: var(--m-contact-color-text-secondary);
}

.m-contact-page-footer__socials-link:hover {
    color: var(--m-contact-color-text-primary);
}