/* ==========================================================================
   ZZAN Studio - Pricing & Process Calculator Styles
   ========================================================================== */

/* Hero Section */
.pricing-hero {
    background: var(--deep-blue);
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.pricing-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 100%, rgba(0,102,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.pricing-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.pricing-title {
    font-family: var(--font-en);
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}
.pricing-desc {
    font-size: 18px;
    color: #a1a1aa;
    line-height: 1.6;
}

/* Calculator Container */
.pricing-calculator {
    background: #f8fafc;
    padding: 60px 0 120px;
    min-height: 800px;
}

/* Tabs */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 15px 30px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.tab-btn:hover {
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}
.tab-btn.active {
    background: var(--black);
    color: #fff;
    border-color: var(--black);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Service List */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Service Card (Main Item) */
.service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.service-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.service-card.selected {
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 2px var(--electric-blue), 0 10px 25px rgba(0,102,255,0.1);
}

/* Service Header (Clickable to select) */
.service-header {
    padding: 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}
.chk-wrapper {
    width: 28px;
    height: 28px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
}
.service-card.selected .chk-wrapper {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
}
.chk-icon {
    width: 16px;
    height: 16px;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: 0.2s;
}
.service-card.selected .chk-icon {
    opacity: 1;
    transform: scale(1);
}

.service-info {
    flex: 1;
}
.service-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.badge-rec {
    font-size: 11px;
    font-weight: 700;
    background: #ff3b30;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.service-info p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.service-meta {
    text-align: right;
    margin-left: 20px;
}
.meta-price {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 800;
    color: var(--black);
    display: block;
    margin-bottom: 4px;
}
.meta-price span {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}
.meta-duration {
    font-size: 13px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
}

/* Service Options (Expands when selected) */
.service-options {
    display: none;
    padding: 0 30px 30px 78px;
    border-top: 1px dashed #e2e8f0;
    background: #fafafa;
}
.service-card.selected .service-options {
    display: block;
    animation: slideDown 0.3s ease-out forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.option-group {
    margin-top: 20px;
}
.option-group h4 {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 600;
}
.option-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
}
.option-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}
.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 15px;
    accent-color: var(--electric-blue);
    cursor: pointer;
}
.option-item .opt-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
}
.option-item .opt-price {
    font-family: var(--font-en);
    font-weight: 600;
    color: var(--black);
}

/* Sticky Estimator Bar */
.sticky-estimator {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 49, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    z-index: 900;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.15);
}
.sticky-estimator.is-active {
    transform: translateY(0);
}

.estimator-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.est-info {
    display: flex;
    flex-direction: column;
}
.est-label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.est-price {
    font-family: var(--font-en);
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 15px;
}
.est-duration {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: #cbd5e1;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
}
.est-duration strong {
    color: var(--electric-blue);
    font-weight: 700;
}
.btn-open-estimate {
    background: var(--electric-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,102,255,0.3);
}
.btn-open-estimate:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,102,255,0.4);
}

/* Modal Form */
.estimate-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.estimate-modal.show {
    opacity: 1;
    visibility: visible;
}
.estimate-modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}
.estimate-modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    z-index: 1001;
    padding: 40px;
    overflow-y: auto;
    transform: translateY(20px) scale(0.95);
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.estimate-modal.show .estimate-modal-content {
    transform: translateY(0) scale(1);
}

.btn-close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: #f1f5f9;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: 0.2s;
}
.btn-close-modal:hover {
    background: #e2e8f0;
    color: var(--black);
}
.btn-close-modal svg { width: 20px; height: 20px; }

.modal-header { margin-bottom: 30px; }
.modal-header h3 { font-size: 24px; font-weight: 800; color: var(--black); margin-bottom: 8px; }
.modal-header p { font-size: 14px; color: #64748b; }

.summary-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}
.summary-preview h4 { font-size: 14px; color: #64748b; margin-bottom: 10px; }
.preview-price { font-family: var(--font-en); font-size: 28px; font-weight: 800; color: var(--electric-blue); margin-bottom: 5px; }
.preview-duration { font-size: 14px; color: var(--black); font-weight: 600; margin-bottom: 15px; }
.preview-items { list-style: none; border-top: 1px solid #e2e8f0; padding-top: 15px; font-size: 13px; color: #475569; }
.preview-items li { margin-bottom: 5px; padding-left: 10px; position: relative; }
.preview-items li::before { content: '-'; position: absolute; left: 0; color: #94a3b8; }

.form-group-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group-row .form-group { flex: 1; margin-bottom: 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--black); margin-bottom: 8px; }
.form-group label .req { color: #ff3b30; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--black);
    transition: 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}

.form-action { margin-top: 30px; }
.btn-submit-estimate {
    width: 100%;
    background: var(--black);
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-submit-estimate:hover { background: #333; }
.spinner { width: 20px; height: 20px; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.form-result-msg { margin-top: 15px; text-align: center; font-size: 14px; font-weight: 600; display: none; }
.form-result-msg.success { color: #10b981; display: block; }
.form-result-msg.error { color: #ff3b30; display: block; }

/* Result Modal */
.result-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10000001; /* GNB보다 훨씬 높게 */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}
.result-modal.show {
    opacity: 1;
    visibility: visible;
}
.result-modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}
.result-modal-content {
    background: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    position: relative;
    z-index: 10001;
    padding: 40px 30px;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.result-modal.show .result-modal-content {
    transform: translateY(0) scale(1);
}

.result-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.result-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.result-icon.error {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}
.result-icon svg {
    width: 30px;
    height: 30px;
}

#resultTitle {
    font-size: 22px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 10px;
}
#resultDesc {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.5;
}

.btn-result-confirm {
    width: 100%;
    background: var(--electric-blue);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.btn-result-confirm:hover {
    background: #0052cc;
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-hero { padding: 120px 0 60px; }
    .pricing-title { font-size: 40px; }
    .pricing-desc { font-size: 15px; }
    
    .pricing-tabs { gap: 10px; margin-bottom: 30px; }
    .tab-btn { padding: 12px 20px; font-size: 14px; flex: 1 1 calc(50% - 10px); text-align: center; }
    
    .service-header { padding: 20px; flex-direction: column; align-items: flex-start; }
    .service-info { margin-bottom: 15px; }
    .service-meta { text-align: left; margin-left: 0; display: flex; align-items: center; justify-content: space-between; width: 100%; }
    .chk-wrapper { position: absolute; top: 20px; right: 0; margin-right: 20px; }
    .service-options { padding: 0 20px 20px 20px; }
    
    .estimator-inner { padding: 0 20px; flex-direction: column; gap: 15px; }
    .est-action { width: 100%; }
    .btn-open-estimate { width: 100%; }
    .est-price { font-size: 24px; }
    
    .form-group-row { flex-direction: column; gap: 20px; }
    .estimate-modal-content { padding: 30px 20px; }
}

/* Modal Active State for Header Control */
body.estimate-modal-active #header {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
