/* Contact page (matches cubig.ai/contact) */

.contact-page { background: #fff; color: rgb(23, 23, 25); }

/* ── Hero ── */
.contact-hero {
    padding: 120px 0 48px;
    border-bottom: 1px solid rgba(23, 23, 25, 0.08);
}
.contact-hero__inner {
    max-width: 1168px;
    margin: 0 auto;
    padding: 0 24px;
}
.contact-hero__title {
    font-family: 'DM Sans', 'Pretendard', sans-serif;
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1.05;
    margin: 0;
}

/* ── Form section ── */
.contact-form-section {
    padding: 64px 0 120px;
}
.contact-form-section__inner {
    max-width: 1168px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.contact-intro__title {
    font-family: 'DM Sans', 'Pretendard', sans-serif;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.1;
    margin: 0 0 24px;
}
.contact-intro__body {
    font-size: 18px;
    line-height: 1.5;
    color: rgb(90, 90, 95);
    max-width: 480px;
}

/* ── Form ── */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.contact-form__flash {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}
.contact-form__flash--ok { background: #ecfdf5; color: #065f46; }
.contact-form__flash--err { background: #fef2f2; color: #991b1b; }

.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form__field label {
    font-size: 14px;
    color: rgb(90, 90, 95);
    font-weight: 500;
}
.contact-form__req { color: #ef4444; }

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(23, 23, 25, 0.15);
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: rgb(23, 23, 25);
    transition: border-color 0.15s;
}
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
    outline: none;
    border-color: rgb(23, 23, 25);
}
.contact-form__field textarea { resize: vertical; min-height: 120px; }
.contact-form__field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4.5 6 8.5 10 4.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form__consent {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.contact-form__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: rgb(90, 90, 95);
    line-height: 1.4;
    cursor: pointer;
}
.contact-form__check input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: rgb(23, 23, 25);
    flex: none;
}

.contact-form__submit {
    margin-top: 12px;
    padding: 14px 28px;
    background: rgb(23, 23, 25);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity 0.15s;
    align-self: flex-start;
}
.contact-form__submit:hover { opacity: 0.85; }

/* ── Product cards ── */
.contact-products {
    padding: 120px 0;
    border-top: 1px solid rgba(23, 23, 25, 0.08);
    background: #fff;
}
.contact-products__inner {
    max-width: 1168px;
    margin: 0 auto;
    padding: 0 24px;
}
.contact-products__title {
    font-family: 'DM Sans', 'Pretendard', sans-serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 500;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin: 0 0 80px;
    max-width: 820px;
}

.contact-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 48px 0;
    border-top: 1px solid rgba(23, 23, 25, 0.08);
}
.contact-card:first-of-type { border-top: 1px solid rgba(23, 23, 25, 0.2); }
.contact-card--flip { grid-template-columns: 1fr 1.2fr; }
.contact-card--flip .contact-card__visual { order: 2; }
.contact-card--flip .contact-card__body { order: 1; }

.contact-card__visual {
    position: relative;
    border-radius: 24px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eeeef1;
}
.contact-card__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.contact-card__ss {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 78%;
    max-height: 78%;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.12));
}

.contact-card__body { padding: 0 16px; }
.contact-card__tag {
    display: inline-block;
    font-size: 14px;
    color: rgb(90, 90, 95);
    margin-bottom: 12px;
}
.contact-card__name {
    font-family: 'DM Sans', 'Pretendard', sans-serif;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -1px;
    margin: 0 0 20px;
}
.contact-card__head {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 12px;
    color: rgb(23, 23, 25);
}
.contact-card__body-text {
    font-size: 16px;
    line-height: 1.5;
    color: rgb(90, 90, 95);
    margin: 0 0 24px;
}
.contact-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgb(23, 23, 25);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid rgb(23, 23, 25);
    padding-bottom: 2px;
    transition: gap 0.15s;
}
.contact-card__cta:hover { gap: 10px; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .contact-hero { padding: 80px 0 32px; }
    .contact-form-section__inner { grid-template-columns: 1fr; gap: 40px; }
    .contact-intro__title { font-size: 32px; }
    .contact-products { padding: 80px 0; }
    .contact-products__title { margin-bottom: 48px; }
    .contact-card,
    .contact-card--flip {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .contact-card--flip .contact-card__visual { order: 1; }
    .contact-card--flip .contact-card__body { order: 2; }
    .contact-card__name { font-size: 28px; }
}
