@charset "utf-8";

.Pay-Wrap {
    width: 100%;
    margin: 0 auto;
    position: relative;
    background: #fff;
    padding: 35px 0 5%;
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    color: #333;
    position: absolute;
    left: 5%;
}

.back-btn .back-arrow {
    width: 40px;
}

.pay-container{
    max-width: 480px;
    margin: 0 auto;
}

.pay-tit{
    text-align: center;
}

.pay-tit h1{
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 700;
    color: #333;
    text-align: left;
    margin-bottom: 25px;
}


.back-btn-mobile {
	display:none;
}


/* 모바일 스타일 (480px 이하) */
@media (max-width: 600px){
    .Pay-Wrap {
        width: 100%;
        padding: 30px 0 2%;
    }

    .pay-container{
        max-width: 90%;
        margin: 0 auto;
        margin-bottom: 50px;
    }

    .back-btn{
        display: none;
    }

    .back-btn-mobile {
        display: block;
        position: absolute;
        top: 22px;
    }

    .pay-tit{
        text-align: left;
        display: flex;
        align-items: center;
    }

    .pay-tit h1{
        display: inline-block;
        position: relative;
        left: 10%;
    }

    .back-arrow {
        width: 40px;
    }
}


@media (max-width: 420px){
    .pay-tit h1{
        left: 13%;
    }
}

.plan-options{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.plan-card{
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card input[type="radio"]{
    position: absolute;
    opacity: 0;
}

.plan-card.selected{
    border-color: #6500ff;
    background: #f4ecff;
    /*background: linear-gradient(135deg, #f3e7ff 0%, #e9d5ff 100%);*/
}

.plan-card .radio-indicator{
    width: 20px;
    height: 20px;
    border: 2px solid #e2e2e2;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.plan-card.selected .radio-indicator{
    border-color: #8b5cf6;
}

.plan-card.selected .radio-indicator::after{
    content: '';
    width: 10px;
    height: 10px;
    background: #8b5cf6;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.plan-title{
    font-size: clamp(17px, 1.5vw, 19px);
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-price{
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 600;
    color: #464646;
    margin-bottom: 10px;
}

.plan-detail{
    font-size: clamp(14px, 1.5vw, 15px);
    color: #666;
}

.billing-info{
    background: #f7f7f7;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 15px;
    /*border: 1px solid #e2e2e2;
    box-sizing: border-box;*/
}

.billing-title{
    font-size: clamp(18px, 1.5vw, 20px);
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.billing-select{
    width: 100%;
    font-size: clamp(15px, 1.5vw, 16px);
    color: #333;
    padding: 15px 20px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: url(../../images/sel_arrow.svg) no-repeat 95%;
    margin-bottom: 20px;
    cursor: pointer;
}

.billing-select option {
  color: #333;
  background: #fff;
}

.billing-select option:checked {
  color: #333;
}

.billing-select option:disabled {
  color: #999;
}

.billing-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.billing-row span em {
    font-size: clamp(15px, 1.5vw, 16px);
    margin-bottom: 15px;
}

.billing-label,
.billing-value,
.billing-total .billing-label:first-child,
.billing-total .billing-value:first-child {
    color: #464646;
}

.billing-label,
.billing-value {
    font-weight: 300;
}

.billing-total .billing-label em,
.billing-total .billing-value em {
    font-weight: 600;
}

.billing-label em,
.billing-value em,
.billing-total .billing-label em {
    display: block;
}

.billing-total{
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 20px;
}


.billing-total .billing-label em:last-child,
.billing-total .billing-value em:last-child {
    color: #8b5cf6;

}


.notice-box{
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    display: flex;
    gap: 8px;
}

.notice-icon{
    color: #8b5cf6;
    flex-shrink: 0;
}

.notice-icon .info-icon-color {
    width: 24px;
}

.notice-text{
    font-size: clamp(15px, 1.5vw, 16px);
    color: #666;
    line-height: 1.5;
    letter-spacing: -0.5px;
}


/* 결제 */
.payment-section{
    margin-bottom: 35px;
}
.section-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.section-title{
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 600;
    color: #464646;
}
.add-card-btn{
    font-size: clamp(15px, 1.5vw, 16px);
    color: #8b5cf6;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
}
.add-card-btn:hover {
    text-decoration: underline;
}
.payment-method{
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.payment-method.selected{
    border-color: #8b5cf6;
    background: #f8f3ff;
}
.payment-method input[type="radio"]{
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}
.payment-method.selected input[type="radio"]{
    border-color: #8b5cf6;
}
.payment-method.selected input[type="radio"]::after{
    content: '';
    width: 10px;
    height: 10px;
    background: #8b5cf6;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.payment-method.selected input[type="radio"]:checked {
    background: transparent !important;
}
.card-icon{
    width: 40px;
    height: 28px;
    font-size: 10px;
    color: white;
    font-weight: 700;
    background: #1a1f36;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.card-info{
    flex: 1;
}
.card-type{
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}
.card-number{
    font-size: clamp(13px, 1.5vw, 14px);
    color: #999;
}

/* 삭제 버튼 */
.delete-card-btn{
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}
.delete-card-btn:hover{
    color: #5b21b6;
    transform: scale(1.1);
}
.delete-card-btn svg{
    pointer-events: none;
}

.checkbox-group{
    margin-bottom: 24px;
}
.checkbox-item{
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.checkbox-item input[type="checkbox"]{
    width: 20px;
    height: 20px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}
.checkbox-label{
    font-size: clamp(15px, 1.5vw, 16px);
    color: #666;
    line-height: 1.5;
}
.subscribe-btn{
    width: 100%;
    font-size: clamp(18px, 2.5vw, 20px);
    font-weight: 600;
    padding: 18px;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.subscribe-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}
.note-text{
    font-size: clamp(13px, 2.5vw, 15px);
    color: #999;
    margin-top: 12px;
}


/* ======================================
               Modal Styles
=========================================*/
.modal-overlay{
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active{
    display: flex;
}

@keyframes fadeIn{
    from{ opacity: 0; }
    to{ opacity: 1; }
}

.modal{
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp{
    from{ transform: translateY(50px); opacity: 0; }
    to{ transform: translateY(0); opacity: 1; }
}

.modal-header{
    padding: 25px 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title{
    font-size: clamp(15px, 2.5vw, 18px);
    font-weight: 600;
    color: #333;
}

.modal-close{
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover{
    background: #f1f3f5;
}

.modal-close .close_svg {
    width: 36px;
}

.modal-body{
    padding: 30px 30px 0;
}

.form-group{
    margin-bottom: 25px;
}

.form-label{
    display: block;
    font-size: clamp(15px, 1.5vw, 16px);
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input{
    width: 100%;
    font-size: clamp(15px, 1.5vw, 16px);
    padding: 15px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-input:focus{
    outline: none;
    border-color: #6500ff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder{
    color: #9ca3af;
}

.form-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.card-type-select{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.card-type-option{
    font-size: clamp(16px, 1.5vw, 18px);
    color: #666;
    font-weight: 600;
    aspect-ratio: 1.5;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;

}

.card-type-option:hover{
    border-color: #6500ff;
}

.card-type-option.selected{
  border-color: #6500ff;
  background: #f4ecff;
  color: #6500ff;
}

.modal-footer{
  padding: 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 5px;
}

.modal-btn{
    font-size: clamp(16px, 1.5vw, 18px);
    font-weight: 600;
    flex: 1;
    padding: 14px;
    border-radius: 8px;

    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn-cancel{
  background: #f1f3f5;
  border: none;
  color: #666;
}

.modal-btn-cancel:hover{ background: #e9ecef; }

.modal-btn-submit{
  background: #6500ff;
  border: none;
  color: white;
}

.modal-btn-submit:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.info-text{
  font-size: clamp(13px, 1.5vw, 14px);
  color: #999;
  margin-top: 10px;
  line-height: 1.4;
}


/* ============================
           환불정책
================================*/
.refund-policy-content {
    margin-top: 40px;
}

.sec {
    margin-bottom: 40px;
}

.sec-title {
    font-size: clamp(20px, 2.5vw, 24px);
    color: #8900F3;
    font-weight: 700;

    margin-bottom: 20px;
    /*padding-bottom: 10px;
    border-bottom: 3px solid #8900F3;*/
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-number {
    background: #8900F3;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.sec-content {
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.9;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.highlight-box {
    background: #f8f9ff;
    border-left: 4px solid #8900F3;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.highlight-box .icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #3a56d2;
    margin-bottom: 10px;
    font-size: clamp(18px, 2vw, 20px);
}

/*.highlight-box .icon::before {
    content: "💡";
    font-size: 24px;
}*/

.formula {
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 600;
    color: #333;
    line-height: 1.35;
    background: white;
    padding: 15px 20px;
    margin: 12px 0;
    border-radius: 6px;
    border: 2px dashed #667eea;
}

.note {
    font-size: clamp(14px, 1.5vw, 15px);
    color: #666;
    padding-left: 20px;
    margin-top: 8px;
    position: relative;
}

.note::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #667eea;
    font-weight: bold;
}

.refund-policy-content .sec ul {
    list-style: none;
    padding-left: 0;
}

.refund-policy-content .sec ul li {
    font-size: clamp(15px, 1.5vw, 16px);
    color: #666;
    line-height: 1.6;
    padding: 12px 5px 0px 30px;
    position: relative;

}

.refund-policy-content .sec ul li::before {
    content: "•";
    position: absolute;
    left: 10px;
    font-size: clamp(16px, 2vw, 18px);
    color: #667eea;
    font-weight: bold;

}


@media (max-width: 600px) {
    .refund-policy-content {
        margin-top: 20px;
    }

}
