/* ==========================================================================
   2027 RIO JET CLUB 시즌회원 가입신청 (Apply) 전용 스타일시트
   ========================================================================== */

#sp_apply_wrap {
    width: 100%;
    max-width: 860px;
    margin: 0 auto 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

#sp_apply_wrap * {
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   상단 헤더 타이틀 영역
   -------------------------------------------------------------------------- */
.sp-apply-header {
    text-align: center;
    padding: 36px 20px 28px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #edf6ff 0%, #ffffff 100%);
    border-radius: 20px;
    border: 1px solid #dbeafe;
}

.sp-apply-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #0066ff;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
    border-radius: 9999px;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.sp-apply-title {
    font-size: 2.1rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.sp-apply-title span {
    color: #0066ff;
}

.sp-apply-desc {
    font-size: 1.05rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   메인 폼 카드 컨테이너
   -------------------------------------------------------------------------- */
.sp-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 36px 32px 40px;
}

/* 섹션 구분 */
.sp-form-section {
    margin-bottom: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.sp-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sp-sec-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 18px;
}

.sp-sec-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #0066ff;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   1. 회원권 선택 (라디오 카드 UI)
   -------------------------------------------------------------------------- */
.sp-plan-select-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.sp-plan-option {
    position: relative;
    cursor: pointer;
}

.sp-plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sp-plan-box {
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sp-plan-option:hover .sp-plan-box {
    border-color: #93c5fd;
    transform: translateY(-3px);
}

.sp-plan-option input[type="radio"]:checked + .sp-plan-box {
    border-color: #0066ff;
    background: #f0f7ff;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
}

.sp-plan-box-vip {
    position: relative;
}

.sp-plan-option input[type="radio"]:checked + .sp-plan-box-vip {
    border-color: #d4a32c;
    background: #fdfbf7;
    box-shadow: 0 8px 24px rgba(212, 163, 44, 0.2);
}

.sp-plan-box-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: #e2e8f0;
    color: #475569;
}

.sp-plan-box-vip .sp-plan-box-tag {
    background: #0066ff;
    color: #ffffff;
}

.sp-plan-box-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
}

.sp-plan-box-orig {
    font-size: 0.88rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

.sp-plan-box-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ff1d38;
    line-height: 1.2;
    margin: 4px 0 8px;
}

.sp-plan-box-discount {
    display: inline-block;
    background: #ff1d38;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 9999px;
}

/* --------------------------------------------------------------------------
   2. 회원정보 입력 필드
   -------------------------------------------------------------------------- */
.sp-input-group {
    margin-bottom: 18px;
}

.sp-input-group:last-child {
    margin-bottom: 0;
}

.sp-label {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.sp-req {
    color: #ff1d38;
    margin-left: 2px;
}

.sp-input-text {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    color: #0f172a;
    transition: all 0.2s ease;
    background: #ffffff;
}

.sp-input-text:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.sp-input-row {
    display: flex;
    gap: 12px;
}

.sp-input-row .sp-input-text {
    flex: 1;
}

.sp-btn-search-addr {
    height: 48px;
    padding: 0 20px;
    background: #1e293b;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.sp-btn-search-addr:hover {
    background: #0f172a;
}

.sp-addr-detail {
    margin-top: 8px;
}

/* 조종면허 라디오 선택 */
.sp-license-options {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-top: 4px;
}

.sp-radio-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.02rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
}

.sp-radio-custom input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #0066ff;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. 이용약관 및 개인정보 동의
   -------------------------------------------------------------------------- */
.sp-agree-all-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 14px;
}

.sp-agree-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 4px;
}

.sp-agree-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sp-checkbox-custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
}

.sp-checkbox-custom input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0066ff;
    cursor: pointer;
}

.sp-btn-view-terms {
    background: none;
    border: none;
    color: #0066ff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px;
}

/* --------------------------------------------------------------------------
   4. 결제방법 선택 (계좌이체 / 카드)
   -------------------------------------------------------------------------- */
.sp-pay-options {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.sp-pay-option {
    cursor: pointer;
    position: relative;
    flex: 1;
    max-width: 280px;
}

.sp-pay-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sp-pay-box {
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 16px 20px;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    color: #334155;
    background: #ffffff;
    transition: all 0.2s ease;
}

.sp-pay-option:hover .sp-pay-box {
    border-color: #94a3b8;
}

.sp-pay-option input[type="radio"]:checked + .sp-pay-box {
    border-color: #0066ff;
    background: #0066ff;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 102, 255, 0.25);
}

/* 계좌이체 안내 박스 */
.sp-bank-info-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 14px;
}

.sp-bank-info-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.sp-bank-account-text {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0066ff;
    margin-bottom: 6px;
}

.sp-bank-account-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   하단 제출 안내 및 제출 버튼
   -------------------------------------------------------------------------- */
.sp-submit-notice {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.sp-submit-notice p {
    font-size: 0.95rem;
    color: #92400e;
    line-height: 1.5;
    margin: 0 0 4px;
    font-weight: 600;
}

.sp-submit-notice p:last-child {
    margin-bottom: 0;
}

.sp-btn-submit {
    width: 100%;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0066ff 0%, #004ecc 100%);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 900;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sp-btn-submit:hover {
    background: linear-gradient(135deg, #0056e0 0%, #003da8 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.45);
}

/* --------------------------------------------------------------------------
   약관 보기 모달
   -------------------------------------------------------------------------- */
.sp-terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sp-terms-modal-box {
    background: #ffffff;
    border-radius: 20px;
    max-width: 650px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.sp-terms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.sp-terms-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.sp-terms-modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.sp-terms-modal-body {
    flex: 1;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    padding-right: 10px;
}

/* 약관 전문 서식 */
.sp-terms-full-doc {
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.65;
}

.sp-terms-pdf-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-btn-pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #0066ff;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.sp-btn-pdf-link:hover {
    background: #004ecc;
    color: #ffffff !important;
}

.sp-terms-intro-box {
    background: #f8fafc;
    border-left: 4px solid #0066ff;
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 0 8px 8px 0;
}

.sp-terms-intro-box p {
    margin: 0 0 6px;
}

.sp-terms-intro-box p:last-child {
    margin-bottom: 0;
}

.sp-terms-article {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.sp-terms-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.sp-article-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
}

.sp-article-body p {
    margin: 0 0 6px;
    color: #334155;
    word-break: keep-all;
}

.sp-article-body p:last-child {
    margin-bottom: 0;
}

.sp-terms-addendum {
    background: #f8fafc;
    padding: 14px;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

.sp-terms-modal-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

.sp-terms-modal-confirm-btn {
    padding: 10px 24px;
    background: #0066ff;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   반응형 미디어 쿼리
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    .sp-form-card {
        padding: 24px 18px;
    }

    .sp-plan-select-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sp-plan-box {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        text-align: left;
    }

    .sp-plan-box-price {
        margin: 0;
        font-size: 1.45rem;
    }

    .sp-apply-title {
        font-size: 1.65rem;
    }

    .sp-pay-options {
        grid-template-columns: 1fr;
    }

    .sp-btn-submit {
        font-size: 1.15rem;
        height: 54px;
    }
}
