/* ===== Samwoo Mobile Style (Mobile Only) ===== */

@media (max-width: 1024px) {
    /* Layout toggles */
    .mobile-content {
        display: block;
    }
    .pc-content {
        display: none !important;
    }
    .mobile-header {
        display: block;
    }
    .pc-header {
        display: none !important;
    }
    .mobile-footer {
        display: block;
    }
    .pc-footer {
        display: none !important;
    }

    body {
        background-color: #ffffff;
        max-width: 720px;
        margin: 0 auto;
    }

    .container-m {
        width: 100%;
        padding: 0 15px;
    }

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

    /* Header */
    .mobile-header {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        z-index: 1000;
        background-color: #ffffff;
        border-bottom: 1px solid #eeeeee;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    }

    .mobile-header .header-inner {
        height: 100%;
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-header .btn-menu-open {
        width: 30px;
        height: 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 6px 4px;
    }

    .mobile-header .btn-menu-open .bar {
        width: 100%;
        height: 2px;
        background-color: #333333;
    }

    .mobile-header .logo img {
        height: 28px;
        width: auto;
        display: block;
    }

    /* Drawer Navigation */
    .mobile-drawer {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        background-color: #ffffff;
        z-index: 10100;
        transition: left 0.3s cubic-bezier(0.1, 0.9, 0.2, 1);
        padding: 20px;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.15);
    }

    .mobile-drawer.active {
        left: 0;
    }

    .mobile-drawer .drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 40px;
        border-bottom: 1px solid #f5f5f5;
        padding-bottom: 15px;
    }

    .mobile-drawer .drawer-nav ul li {
        margin-bottom: 20px;
    }

    .mobile-drawer .drawer-nav ul li a {
        font-size: 18px;
        font-weight: 500;
        color: #333;
        display: block;
        padding: 5px 0;
    }

    .drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 10050;
        display: none;
    }

    .drawer-overlay.active {
        display: block;
    }

    /* Footer */
    .mobile-footer {
        background-color: #3d3532;
        color: #a8a3a0;
        padding: 50px 20px 40px;
        font-size: 12px;
        border-top: none;
    }

    .mobile-footer .footer-branch {
        width: 100%;
    }

    .mobile-footer .branch-title {
        font-size: 13px;
        font-weight: 500;
        color: #d0c9c4;
        margin-bottom: 8px;
    }

    .mobile-footer .branch-tel {
        font-size: 22px;
        font-weight: 700;
        color: #c4ad90;
        display: block;
        margin-bottom: 12px;
    }

    .mobile-footer .branch-service .service-label {
        font-size: 10px;
        color: #8c827d;
        display: block;
        margin-bottom: 2px;
    }

    .mobile-footer .branch-service .service-list {
        font-size: 12px;
        color: #a8a3a0;
        line-height: 1.6;
    }

    .mobile-footer .footer-divider {
        border: none;
        border-top: 1px solid #4d4440;
        margin: 30px 0;
        width: 100%;
    }

    .mobile-footer .footer-links-col {
        margin-top: 25px;
    }

    .mobile-footer .link-title {
        font-size: 13px;
        font-weight: 500;
        color: #c4ad90;
        margin-bottom: 12px;
    }

    .mobile-footer .link-list li {
        margin-bottom: 6px;
    }

    .mobile-footer .link-list li a {
        font-size: 12px;
        color: #a8a3a0;
    }

    .mobile-footer .privacy-link {
        font-weight: 700;
        color: #ffffff !important;
    }

    .mobile-footer .footer-company-box {
        margin-top: 40px;
        border-top: 1px solid #4d4440;
        padding-top: 30px;
        width: 100%;
    }

    .mobile-footer .footer-logo {
        margin-bottom: 20px;
        width: 180px;
    }

    .mobile-footer .footer-logo img {
        width: 100%;
        height: auto;
        display: block;
        opacity: 0.9;
    }

    .mobile-footer .company-details p {
        font-size: 11px;
        color: #857e7a;
        line-height: 1.8;
        margin-bottom: 4px;
    }

    .mobile-footer .company-details .copyright {
        margin-top: 20px;
        font-size: 11px;
        color: #857e7a;
    }

    /* Main Layout Styles for Mobile */

    /* Hero */
    .main-hero {
        width: 100%;
        height: auto;
        overflow: hidden;
        position: relative;
    }

    .main-hero .swiper-slide img {
        width: 100%;
        height: auto;
        display: block;
    }

    .main-hero .swiper-pagination {
        bottom: 15px !important;
    }

    .main-hero .swiper-pagination-bullet {
        background: #ffffff;
        opacity: 0.5;
        margin: 0 4px !important;
    }

    .main-hero .swiper-pagination-bullet-active {
        background: #ffffff;
        opacity: 1;
    }

    /* Section 01 (Intro) */
    .mobile-section-01 {
        width: 100%;
        background-size: 100% auto;
        background-position: top center;
        background-repeat: no-repeat;
        padding: 0;
    }

    /* Section 02 (Swiper) */
    .mobile-section-02 {
        width: 100%;
        overflow: hidden;
        background-size: 100% 100%;
        background-position: center;
        padding: 0 0 60px 0;
    }

    .mobile-section-02 .section-header {
        position: relative;
        margin-bottom: 30px;
        width: 100%;
    }

    .mobile-section-02 .btn-view-all {
        position: absolute;
        right: 15px;
        bottom: 10px;
        font-size: 13px;
        font-weight: 500;
        color: #333333;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        transition: color 0.3s ease;
    }

    .mobile-section-02 .btn-view-all span {
        border-bottom: 1px solid #333333;
        padding-bottom: 1px;
        transition: border-color 0.3s ease;
    }

    .mobile-section-02 .btn-view-all:hover {
        color: #000000;
    }

    .mobile-section-02 .btn-view-all:hover span {
        border-color: #000000;
    }

    .mobile-sec2-swiper {
        width: 100%;
        overflow: hidden;
        position: relative;
        padding: 10px 0;
        cursor: grab;
    }

    .mobile-sec2-swiper:active {
        cursor: grabbing;
    }

    .mobile-sec2-swiper .swiper-wrapper {
        transition-timing-function: linear !important;
    }

    .mobile-sec2-swiper .mobile-marquee-slide {
        width: 270px;
        margin-right: 20px;
    }

    .mobile-sec2-swiper img {
        pointer-events: none;
    }

    .mobile-section-02 .slide-card {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .mobile-section-02 .card-img-box {
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        margin-bottom: 10px;
    }

    .mobile-section-02 .card-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .mobile-section-02 .card-info-box {
        text-align: left;
    }

    .mobile-section-02 .card-title {
        font-size: 15px;
        font-weight: 700;
        color: #111111;
        margin-bottom: 4px;
    }

    .mobile-section-02 .card-desc {
        font-size: 12px;
        color: #666666;
        line-height: 1.4;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 34px;
    }

    .mobile-section-02 .card-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .mobile-section-02 .card-tags .tag {
        font-size: 10px;
        color: #927554;
        background-color: #f7f4ed;
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 500;
    }

    /* Section 03 (Portfolio Previews) */
    .mobile-section-03 {
        width: 100%;
        background-size: 100% auto;
        background-position: top center;
        padding: 0 0 60px 0;
    }

    .mobile-section-03 .section-header {
        margin-bottom: 30px;
    }

    .mobile-section-03 .portfolio-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .mobile-section-03 .portfolio-item {
        cursor: pointer;
        overflow: hidden;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        width: 100%;
    }

    .mobile-section-03 .portfolio-item img {
        width: 100%;
        height: auto;
        display: block;
    }

    .mobile-section-03 .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: #999999;
        opacity: 0.5;
        margin: 0 5px !important;
        transition: all 0.3s ease;
    }

    .mobile-section-03 .swiper-pagination-bullet-active {
        width: 24px;
        border-radius: 4px;
        background: #927554 !important;
        opacity: 1;
    }

    .mobile-section-03 .mobile-portfolio-wrapper {
        position: relative;
        width: 100%;
    }

    /* Section 03 Mobile Navigation Buttons */
    .mobile-section-03 .portfolio-nav-btn {
        position: absolute;
        top: calc(50% - 25px);
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
        cursor: pointer;
        z-index: 10;
        background: none;
        border: none;
        outline: none;
        transition: opacity 0.3s ease;
    }

    .mobile-section-03 .portfolio-nav-btn:hover {
        opacity: 0.8;
    }

    .mobile-section-03 .portfolio-nav-btn img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .mobile-section-03 .prev-btn-sec3 {
        left: 5px;
    }

    .mobile-section-03 .next-btn-sec3 {
        right: 5px;
    }

    /* Modal details adjustments for mobile */
    .modal-btn {
        width: 42px;
        height: 42px;
    }
    .prev-btn {
        left: 5px;
    }
    .next-btn {
        right: 5px;
    }
    .btn-modal-close {
        top: 20px;
        right: 10px;
    }

    /* About Page (Mobile) */
    .mobile-about-content {
        width: 100%;
        background-color: #ffffff;
    }

    .mobile-about-content .about-banner,
    .mobile-about-content .about-section {
        width: 100%;
        background-color: #ffffff;
    }

    .mobile-about-content .full-img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Mobile Consultation Styles */
    .mobile-consult-content {
        width: 100%;
        background-color: #fcfbfa;
    }

    .mobile-consult-content .consult-banner {
        width: 100%;
        display: block;
    }

    .mobile-consult-content .consult-banner img {
        width: 100%;
        height: auto;
        display: block;
    }

    .mobile-consult-content .consult-section {
        width: 100%;
        padding: 0px 0 40px 0;
    }

    .mobile-consult-content .selection-view {
        display: none;
    }

    .mobile-consult-content .selection-view.active {
        display: block;
    }

    .mobile-consult-content .selection-footer-desc {
        text-align: center;
        margin-top: 5px;
        padding: 0 15px;
    }

    .mobile-consult-content .selection-footer-desc img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .mobile-consult-content .section-title-card {
        text-align: center;
        margin-top: -25px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .mobile-consult-content .section-title-card img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .mobile-consult-content .selection-card {
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
        overflow: hidden;
        margin: 0 15px 30px 15px;
        padding-bottom: 30px;
        text-align: center;
        box-sizing: border-box;
    }

    .mobile-consult-content .selection-card:last-child {
        margin-bottom: 0;
    }

    .mobile-consult-content .selection-card .card-img img {
        width: 100%;
        height: auto;
        display: block;
    }

    .mobile-consult-content .selection-card .card-text img {
        width: 100%;
        height: auto;
        display: block;
        padding: 25px 15px;
        box-sizing: border-box;
    }

    .mobile-consult-content .selection-card .card-btn-wrap .btn-goto-form {
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        width: 90%;
        display: block;
        margin: 0 auto;
    }

    .mobile-consult-content .selection-card .card-btn-wrap .btn-goto-form img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* Form View Mobile */
    .mobile-consult-content .form-view {
        display: none;
    }

    .mobile-consult-content .form-view.active {
        display: block;
    }

    .mobile-consult-content .form-title {
        font-size: 24px;
        font-weight: 700;
        color: #3d3532;
        margin-bottom: 0;
        text-align: center;
        letter-spacing: -0.5px;
    }

    .mobile-consult-content .form-card-box {
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 10px 35px rgba(0, 0, 0, 0.04);
        padding: 30px 10px;
        box-sizing: border-box;
        margin: 0 8px 30px 8px;
        text-align: left;
    }

    .mobile-consult-content .box-header {
        font-size: 18px;
        font-weight: 700;
        color: #333333;
        margin-bottom: 25px;
        border-bottom: 2px solid #333333;
        padding-bottom: 10px;
    }

    .mobile-consult-content .input-group {
        display: flex;
        flex-direction: column;
        margin-bottom: 20px;
        width: 100%;
    }

    .mobile-consult-content .input-group label {
        display: block;
        font-size: 14px;
        font-weight: 700;
        color: #333333;
        margin-bottom: 8px;
    }

    .mobile-consult-content .required-star {
        color: #d0021b;
        margin-left: 3px;
    }

    .mobile-consult-content .input-group input[type="text"],
    .mobile-consult-content .input-group input[type="tel"],
    .mobile-consult-content .input-group textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #e1dbd6;
        background-color: #ffffff;
        font-size: 14px;
        font-family: inherit;
        border-radius: 4px;
        box-sizing: border-box;
        outline: none;
        color: #333333;
        -webkit-appearance: none; /* Fix iOS default styling */
        min-height: 45px;
    }

    .mobile-consult-content .input-group input[type="date"] {
        width: 100% !important;
        padding: 12px 15px;
        border: 1px solid #e1dbd6;
        background-color: #ffffff;
        font-size: 14px;
        font-family: inherit;
        border-radius: 4px;
        box-sizing: border-box;
        outline: none;
        color: #333333;
        height: 45px !important;
        min-height: 45px;
        line-height: normal;
        /* Force color and display for Android Chrome */
        display: block !important;
        opacity: 1 !important;
        -webkit-text-fill-color: #333333 !important;
        position: relative; /* Set relative to align pseudo element absolutely */
    }

    /* Date Input Pseudo Placeholder Setup */
    .mobile-consult-content .input-group input[type="date"]::before {
        content: attr(placeholder);
        color: #999999;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none; /* Prevent blocking native tap/click events */
        display: inline-block;
    }
    
    /* Only hide placeholder when value attribute actually exists (date is chosen) */
    .mobile-consult-content .input-group input[type="date"][value]::before {
        display: none !important;
        content: "" !important;
    }

    .mobile-consult-content .input-group input[type="text"]:focus,
    .mobile-consult-content .input-group input[type="tel"]:focus,
    .mobile-consult-content .input-group input[type="date"]:focus,
    .mobile-consult-content .input-group textarea:focus {
        border-color: #3d3d3b;
    }

    .mobile-consult-content .input-group input[readonly] {
        background-color: #f2f0ed;
        border: 1px solid #e1dbd6;
        color: #666666;
        cursor: not-allowed;
    }

    .mobile-consult-content .address-group input {
        margin-bottom: 8px;
    }

    .mobile-consult-content .address-group input:last-child {
        margin-bottom: 0;
    }

    .mobile-consult-content .address-group .zip-row {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
        width: 100%;
    }

    .mobile-consult-content .address-group .zip-row input {
        flex: 1;
        margin-bottom: 0;
    }

    .mobile-consult-content .address-group .zip-row .btn-zipcode-search {
        background-color: #333333;
        color: #ffffff;
        border: none;
        padding: 0 15px;
        font-size: 13px;
        font-weight: 700;
        border-radius: 4px;
        cursor: pointer;
        flex-shrink: 0;
    }

    /* Guidelines Box */
    .mobile-consult-content .guidelines-box {
        background-color: #f9f8f7;
        border: 1px solid #ece9e6;
        border-radius: 8px;
        padding: 20px 15px;
        margin: 25px 0;
        box-sizing: border-box;
    }

    .mobile-consult-content .guidelines-box h4 {
        font-size: 14px;
        font-weight: 700;
        color: #3d3532;
        margin-bottom: 12px;
    }

    .mobile-consult-content .guidelines-box h4 i {
        color: #cdae87;
        margin-right: 6px;
    }

    .mobile-consult-content .guidelines-box .guide-main-desc {
        font-size: 13px;
        font-weight: 700;
        color: #333333;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .mobile-consult-content .guidelines-box .guide-list {
        list-style-type: disc;
        margin-left: 15px;
        margin-bottom: 15px;
    }

    .mobile-consult-content .guidelines-box .guide-list li {
        font-size: 12px;
        color: #666666;
        margin-bottom: 6px;
        line-height: 1.5;
    }

    .mobile-consult-content .guidelines-box .guide-callout {
        background-color: #ffffff;
        border-radius: 6px;
        padding: 12px 15px;
        font-size: 12px;
        color: #666666;
        border-left: 3px solid #cdae87;
        line-height: 1.5;
    }

    .mobile-consult-content .guidelines-box .guide-callout i {
        color: #cdae87;
        margin-right: 4px;
    }

    /* Consent Area */
    .mobile-consult-content .consent-block {
        margin: 25px 0;
        border-top: 1px solid #ece9e6;
        padding-top: 20px;
    }

    .mobile-consult-content .consent-inner-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-bottom: 5px;
    }

    .mobile-consult-content .checkbox-label-wrap {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        user-select: none;
    }

    .mobile-consult-content .checkbox-label-wrap input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #3d3532;
        cursor: pointer;
    }

    .mobile-consult-content .checkbox-label-wrap .label-text {
        font-size: 14px;
    }

    .mobile-consult-content .consent-block .btn-view-terms {
        background: transparent;
        border: none;
        padding: 0;
        color: #999999;
        font-size: 12px;
        text-decoration: underline;
        cursor: pointer;
        outline: none;
    }

    .mobile-consult-content .consent-sub-desc {
        font-size: 11px;
        color: #999999;
        line-height: 1.5;
        margin-top: 8px;
        margin-left: 26px;
    }

    .mobile-consult-content .submit-btn-wrap {
        text-align: center;
        margin-top: 30px;
    }

    .mobile-consult-content .btn-submit {
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        width: 100%;
        display: block;
    }

    .mobile-consult-content .btn-submit img {
        width: 100%;
        height: auto;
        display: block;
    }
}
