.coin-purchase-container {
    max-width: 1200px;
    margin: 0 auto;
    /*
    padding: 80px 20px;
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
    */
    min-height: 100vh;
}

.coin-purchase-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.coin-purchase-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff; /* 배경이 어두워졌으므로 흰색으로 변경 */
    margin-bottom: 40px;
    position: relative;
    padding-top: 40px; /* 위쪽 여백 추가 */
}

.coin-purchase-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
}

/* 단계 표시 - 반응형 개선 */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    gap: 10px;
    overflow-x: auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 100px;
    padding: 0 10px;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 35px;
    right: -20px;
    width: 30px;
    height: 2px;
    background: #009393;
    z-index: 1;
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 147, 147, 0.3);
}

.step-icon span {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

/* 유의사항 섹션 - 스크롤 제거 및 반응형 개선 */
.notice-section {
    padding: 40px 30px;
}

.notice-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.notice-list {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    /* 스크롤 제거 - 전체 내용 표시 */
}

.notice-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.notice-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.notice-item::before {
    content: '•';
    color: #009393;
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.notice-text {
    font-size: 14px;
    line-height: 1.6;
    color: #495057;
    word-break: keep-all;
}

.notice-highlight {
    color: #009393;
    font-weight: 600;
}

.notice-danger {
    color: #dc3545;
    font-weight: 600;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
}

.agreement-checkbox input {
    margin-right: 12px;
    transform: scale(1.2);
    accent-color: #009393;
    cursor: pointer;
}

.agreement-checkbox label {
    font-size: 16px;
    font-weight: 600;
    color: #856404;
    cursor: pointer;
    flex: 1;
}

.proceed-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 147, 147, 0.3);
}

.proceed-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 147, 147, 0.4);
}

.proceed-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #95a5a6;
}

/* 코인 선택 및 폼 섹션 - 기본적으로 숨김 */
.coin-selection-section,
.form-section,
.submit-section {
    display: none;
}

.coin-selection-section {
    padding: 40px 30px;
    background: #f8f9fa;
}

.coin-tabs-guide {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* 코인 탭 - 반응형 그리드로 개선 */
.coin-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.coin-tab-item {
    padding: 20px 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.coin-tab-item:hover {
    border-color: #009393;
    transform: translateY(-2px);
}

.coin-tab-item.active {
    border-color: #009393;
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
    color: white;
}

.coin-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.coin-symbol {
    font-size: 14px;
    opacity: 0.8;
}

/* 폼 섹션 */
.form-section {
    padding: 40px 30px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #009393;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: #009393;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 147, 147, 0.1);
}

.form-input:read-only {
    background: #f8f9fa;
    color: #6c757d;
}

.input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.input-group .form-input {
    padding-right: 60px;
}

.input-unit {
    position: absolute;
    right: 20px;
    color: #6c757d;
    font-weight: 600;
    pointer-events: none;
}

/* 연락처 그룹 - 반응형 개선 */
.contact-group {
    display: grid;
    grid-template-columns: 80px 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

.contact-group select,
.contact-group input {
    padding: 15px 10px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

.contact-group select:focus,
.contact-group input:focus {
    border-color: #009393;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 147, 147, 0.1);
}

.cert-btn {
    padding: 15px 20px;
    background: #009393;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 14px;
}

.cert-btn:hover:not(:disabled) {
    background: #006666;
}

.cert-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    border-color: #009393;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 147, 147, 0.1);
}

.form-alert {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 13px;
    color: #856404;
}

/* 수수료 테이블 - 반응형 개선 */
.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.fee-table th {
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
    color: white;
    padding: 15px 10px;
    font-weight: 600;
    text-align: center;
    font-size: 16px;
}

.fee-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
    font-size: 13px;
    word-break: keep-all;
    color: #000000;
}

.fee-table tr:nth-child(even) {
    background: #f8f9fa;
}

.submit-section {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.final-agreement {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.final-agreement input {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #009393;
    cursor: pointer;
}

.final-agreement label {
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    max-width: 400px;
    padding: 18px;
    background: linear-gradient(135deg, #009393 0%, #006666 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 147, 147, 0.3);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 147, 147, 0.4);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: #95a5a6;
}

/* 알림 모달 */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.alert-modal {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.alert-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.alert-icon.success {
    color: #28a745;
}

.alert-icon.error {
    color: #dc3545;
}

.alert-icon.info {
    color: #009393;
}

.alert-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.alert-message {
    font-size: 16px;
    line-height: 1.5;
    color: #495057;
    margin-bottom: 25px;
}

.alert-close-btn {
    padding: 12px 30px;
    background: #009393;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alert-close-btn:hover {
    background: #006666;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .coin-purchase-container {
        padding: 20px 10px;
    }
    
    .coin-purchase-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .notice-section {
        padding: 30px 20px;
    }
    
    .coin-tabs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .contact-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-section {
        padding: 30px 20px;
    }
    
    .submit-section {
        padding: 20px;
    }
    
    .final-agreement {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .final-agreement input {
        margin-bottom: 10px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .coin-purchase-title {
        font-size: 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon span {
        font-size: 20px;
    }
    
    .notice-text {
        font-size: 13px;
    }
    
    .fee-table th,
    .fee-table td {
        padding: 8px 5px;
        font-size: 11px;
    }
}

/* 약관 및 개인정보 처리방침 뷰어 - iframe 방식 */
.terms-iframe {
    width: 100%;
    height: 150px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    background-color: #ffffff;
    box-sizing: border-box;
}