/* Design Tokens */
:root {
    --primary-color: #0f172a;
    --primary-orange: #df5b3f; /* Coral red matching the brochure */
    --primary-orange-hover: #c8492e;
    --primary-orange-light: #fdf5f3;
    --bg-white: #ffffff;
    --text-dark: #22252a;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-orange: 0 8px 24px rgba(223, 91, 63, 0.25);
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white); /* Changed left/right margin background to white */
    font-family: var(--font-family);
    padding-bottom: 90px; /* space for sticky bar */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Brochure Container */
.brochure-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: var(--shadow-lg);
    border-left: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
}

.brochure-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.page-item {
    position: relative;
    width: 100%;
    line-height: 0; /* remove image gap */
}

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

/* Overlay CTA Buttons & Zones */
.overlay-cta {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-hover) 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-orange);
    transition: var(--transition);
    transform: translateX(-50%);
    z-index: 10;
    line-height: 1.5;
    text-align: center;
}

.overlay-cta:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 12px 28px rgba(223, 91, 63, 0.4);
    filter: brightness(1.05);
}

/* Position on Page 1 */
.p1-btn {
    bottom: 7%;
    left: 50%;
    padding: 16px 48px;
    width: 60%;
    max-width: 400px;
}

/* Position on Page 4 */
.p4-btn {
    bottom: 4%;
    left: 50%;
    padding: 16px 48px;
    width: 60%;
    max-width: 400px;
}

/* Transparent click zones for 1-4 구좌 on Page 7 */
.click-zone {
    position: absolute;
    cursor: pointer;
    background-color: rgba(223, 91, 63, 0); /* Transparent */
    transition: background-color 0.2s ease;
    border: 2px dashed transparent;
}

.click-zone:hover {
    background-color: rgba(223, 91, 63, 0.05);
    border-color: var(--primary-orange);
}

/* Responsive grid areas for the 4 product boxes on page 7 */
.zone-1 {
    top: 30%;
    left: 3%;
    width: 22%;
    height: 48%;
}

.zone-2 {
    top: 30%;
    left: 27%;
    width: 22%;
    height: 48%;
}

.zone-3 {
    top: 30%;
    left: 51%;
    width: 22%;
    height: 48%;
}

.zone-4 {
    top: 30%;
    left: 75%;
    width: 22%;
    height: 48%;
}

/* Sticky Bottom CTA Bar */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--primary-orange);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 999;
    padding: 16px 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta-bar.show {
    transform: translateY(0);
}

.cta-bar-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-text {
    display: flex;
    flex-direction: column;
}

.cta-text strong {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 800;
}

.cta-text span {
    font-size: 13px;
    color: var(--text-muted);
}

.cta-bar-btn {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-hover) 100%);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    font-weight: 800;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-orange);
    transition: var(--transition);
}

.cta-bar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(223, 91, 63, 0.4);
    filter: brightness(1.05);
}

/* Custom Modals */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    line-height: 1.6;
}

.custom-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--primary-orange);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.custom-modal-overlay.show .custom-modal {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    line-height: 0;
}

.close-modal-btn:hover {
    color: var(--text-dark);
}

.close-modal-btn i {
    width: 20px;
    height: 20px;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-orange-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    margin: 0 auto 24px auto;
}

.modal-icon i {
    width: 32px;
    height: 32px;
}

.modal-icon.gift-icon {
    background-color: #fee2e2;
    color: #dc2626;
}

.custom-modal h3 {
    font-size: 24px;
    font-weight: 850;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.modal-notice-box {
    background-color: var(--primary-orange-light);
    border: 1px solid rgba(223, 91, 63, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.alert-highlight {
    font-size: 18px;
    font-weight: 850;
    color: #b52b2b;
    margin-bottom: 8px;
}

.alert-desc {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
}

.pricing-guidance-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 13.5px;
    line-height: 1.6;
    text-align: left;
    color: var(--text-dark);
}

.pricing-guidance-box.secondary {
    background-color: #fff5f5;
    border-color: #fed7d7;
    color: #9b2c2c;
    margin-top: 10px;
    margin-bottom: 24px;
}

.modal-sub-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal-body-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-tag {
    display: inline-block;
    background-color: #fef2f2;
    color: #dc2626;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.modal-confirm-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-hover) 100%);
    color: #ffffff;
    border: none;
    padding: 16px;
    font-weight: 800;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-orange);
}

.modal-confirm-btn:hover {
    box-shadow: 0 6px 20px rgba(223, 91, 63, 0.4);
    transform: translateY(-1px);
}

.promo-modal .modal-confirm-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2);
}

.promo-modal .modal-confirm-btn:hover {
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-bar-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .cta-text strong {
        font-size: 12px; /* Set mobile font size to 12px as requested */
    }
    .cta-text span {
        font-size: 11px;
    }
    .cta-bar-btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 10px 20px;
    }
}
