/* 패키지 신청 페이지 전용 CSS - v1.0.2 */

.pkg-apply-section {
    padding: 48px 0 80px;
    background: linear-gradient(165deg, #f8f9fc 0%, #f0f2f7 40%, #fafbff 100%);
    min-height: 70vh;
}

.pkg-apply-section .container {
    max-width: 1000px;
}

.pkg-apply-header {
    padding: 28px 32px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e3e8;
    margin-bottom: 28px;
}

.pkg-apply-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1d2e;
    margin: 0 0 20px;
    line-height: 1.5;
}

.pkg-apply-info p {
    margin: 0 0 8px;
    font-size: 15px;
    color: #374151;
}

.pkg-apply-info p:last-child { margin-bottom: 0; }

.pkg-apply-products-block {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e3e8;
    margin-bottom: 24px;
}

.pkg-apply-products-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1d2e;
    margin: 0 0 20px;
}

.pkg-apply-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.pkg-apply-product-card {
    display: block;
    background: #fff;
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.pkg-apply-product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #c5cae9;
}

.pkg-apply-product-img {
    aspect-ratio: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pkg-apply-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pkg-apply-product-img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0b5c0;
    font-size: 28px;
}

.pkg-apply-product-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 10px 8px 4px;
    color: #1a1d2e;
    line-height: 1.3;
}

.pkg-apply-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px 12px;
    gap: 6px;
}

.pkg-apply-product-spec {
    font-size: 11px;
    color: #6b7280;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pkg-apply-product-qty {
    font-size: 12px;
    font-weight: 600;
    color: #5c6bc0;
    flex-shrink: 0;
}

/* 추가 상품 섹션 (페이지 내) */
.pkg-apply-options-block {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e3e8;
    margin-bottom: 24px;
}

.pkg-apply-options-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1d2e;
    margin: 0 0 20px;
}

.pkg-apply-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.pkg-apply-opt-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
    transition: all 0.2s ease;
}

.pkg-apply-opt-card.is-added {
    border-color: #22c55e;
    background: #f0fdf4;
}

.pkg-apply-opt-img {
    aspect-ratio: 1;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}

.pkg-apply-opt-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pkg-apply-opt-img i { font-size: 28px; color: #cbd5e1; }

.pkg-apply-opt-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1d2e;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pkg-apply-opt-spec {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}

.pkg-apply-opt-qty {
    font-size: 12px;
    font-weight: 600;
    color: #5c6bc0;
    margin-bottom: 10px;
}

.pkg-apply-opt-addbtn {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    background: #5c6bc0;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pkg-apply-opt-addbtn:hover { background: #3949ab; }

.pkg-apply-opt-card.is-added .pkg-apply-opt-addbtn {
    background: #22c55e;
    color: #fff;
}

.pkg-apply-opt-card.is-added .pkg-apply-opt-addbtn:hover { background: #16a34a; }

/* 렌탈기간 선택 섹션 */
.pkg-apply-rental-block {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e3e8;
    margin-bottom: 24px;
}

.pkg-apply-rental-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1d2e;
    margin: 0 0 16px;
}

.pkg-apply-rental-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.pkg-apply-rental-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.pkg-apply-rental-option:hover { border-color: #c5cae9; }

.pkg-apply-rental-option input { display: none; }

.pkg-apply-rental-option:has(input:checked),
.pkg-apply-rental-option.is-default:has(input:checked) {
    border-color: #0058a3;
    background: #f0f7ff;
}

.pkg-apply-rental-label { font-weight: 600; color: #1a1d2e; }

.pkg-apply-rental-price { font-size: 14px; font-weight: 600; color: #0058a3; }

.pkg-apply-rental-summary {
    padding: 14px 18px;
    background: #f8f9fc;
    border-radius: 8px;
    font-size: 14px;
}

.pkg-apply-rental-summary-label { color: #6b7280; margin-right: 8px; }

.pkg-apply-rental-summary-value { font-weight: 700; color: #1a1d2e; }

.pkg-apply-rental-summary-price {
    margin-left: 12px;
    font-weight: 600;
    color: #0058a3;
}

.pkg-apply-notes {
    padding: 20px 24px;
    background: #f8f9fc;
    border-radius: 10px;
    margin-bottom: 28px;
}

.pkg-apply-notes p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.pkg-apply-notes p:last-of-type { margin-bottom: 12px; }

.pkg-apply-delivery-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #5c6bc0;
    text-decoration: none;
}

.pkg-apply-delivery-link:hover { color: #3949ab; text-decoration: underline; }

/* 액션 버튼 영역 */
.pkg-apply-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: stretch;
}

.pkg-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pkg-apply-btn-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* 메인 버튼 - 견적바구니 담기 */
.pkg-apply-btn-main {
    flex: 2;
    min-width: 200px;
    background: linear-gradient(135deg, #0058a3 0%, #003d7a 100%);
    color: #fff;
}

.pkg-apply-btn-main:hover {
    background: linear-gradient(135deg, #006bb8 0%, #004a94 100%);
    box-shadow: 0 6px 20px rgba(0, 88, 163, 0.35);
    transform: translateY(-1px);
}

.pkg-apply-btn-main:active {
    transform: translateY(0);
}

.pkg-apply-btn-main:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 카톡문의 버튼 */
.pkg-apply-btn-kakao {
    flex: 1;
    min-width: 140px;
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.pkg-apply-btn-kakao:hover {
    background: #fefce8;
    border-color: #fde047;
    box-shadow: 0 4px 12px rgba(253, 224, 71, 0.25);
}

.pkg-apply-kakao-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fae210;
    padding: 2px;
    object-fit: contain;
}

/* 전화문의 버튼 */
.pkg-apply-btn-call {
    flex: 1;
    min-width: 140px;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.pkg-apply-btn-call:hover {
    background: #f0fdf4;
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.pkg-apply-call-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}

.pkg-apply-call-number {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.5px;
}

@media (max-width: 576px) {
    .pkg-apply-actions {
        flex-direction: column;
        gap: 12px;
    }
    .pkg-apply-btn-main,
    .pkg-apply-btn-kakao,
    .pkg-apply-btn-call {
        flex: none;
        width: 100%;
        min-width: 0;
    }
}

/* 토스트 팝업 */
.pkg-apply-toast-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pkg-apply-toast-overlay.is-open {
    display: flex;
    opacity: 1;
}

.pkg-apply-toast-box {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 32px 64px -12px rgba(0,0,0,0.2);
    max-width: 480px;
    width: 100%;
    padding: 32px 28px;
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
}

.pkg-apply-toast-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pkg-apply-toast-icon i { font-size: 30px; color: #fff; }

.pkg-apply-toast-title {
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.pkg-apply-toast-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.55;
}

.pkg-apply-toast-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pkg-apply-toast-btn {
    display: block;
    padding: 15px 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pkg-apply-toast-btn-primary {
    background: linear-gradient(135deg, #0058a3 0%, #003d7a 100%);
    color: #fff;
}

.pkg-apply-toast-btn-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.pkg-apply-toast-options {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: left;
}

.pkg-apply-toast-options-title {
    font-size: 14px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 14px;
}

.pkg-apply-toast-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.pkg-apply-toast-opt-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    padding: 12px;
}

.pkg-apply-toast-opt-img {
    aspect-ratio: 1;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
}

.pkg-apply-toast-opt-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pkg-apply-toast-opt-img i { font-size: 24px; color: #cbd5e1; }

.pkg-apply-toast-opt-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1d2e;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pkg-apply-toast-opt-spec {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}

.pkg-apply-toast-opt-qty {
    font-size: 12px;
    font-weight: 600;
    color: #5c6bc0;
    margin-bottom: 10px;
}

.pkg-apply-toast-opt-addbtn {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    background: #5c6bc0;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.pkg-apply-toast-opt-addbtn:hover { background: #3949ab; }
.pkg-apply-toast-opt-addbtn:disabled { opacity: 0.7; cursor: not-allowed; }

@media (max-width: 576px) {
    .pkg-apply-toast-options-grid { grid-template-columns: 1fr; }
}
