/**
 * 약관 동의 페이지 스타일
 * 
 * @created 2026-01-19
 */

/* ===== AGREE PAGE ===== */
.agree-section {
    padding: 2rem 0 3rem;
}

.agree-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Progress Steps - Modern */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 2.5rem;
    background: #fff;
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    position: relative;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #6366f1;
    color: #fff;
    margin: 0 5px;
}

.progress-step.completed {
    color: #10b981;
}

.progress-step .step-num {
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #94a3b8;
}

.progress-step.active .step-num {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.progress-step.completed .step-num {
    background: #d1fae5;
    color: #10b981;
}

.progress-connector {
    width: 40px;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.25rem;
}

.progress-connector.active {
    background: #10b981;
}

/* Agree Card */
.agree-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.agree-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.agree-card-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.agree-card-title i {
    font-size: 1.25rem;
    color: #6366f1;
}

.required-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    padding: 0.25rem 0.5rem;
    border: 1px solid #fecaca;
}

.required-badge i {
    font-size: 0.6rem;
}

.required-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #dc2626;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
    border-radius: 100px;
}

.agree-card-body {
    padding: 1.5rem;
}

/* Terms Box */
.terms-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.7;
}

.terms-box::-webkit-scrollbar {
    width: 6px;
}

.terms-box::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.terms-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.terms-box h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #e2e8f0;
}

.terms-box h5 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin: 0.875rem 0 0.375rem;
}

.terms-box p {
    margin: 0 0 0.5rem;
}

.terms-box ul {
    margin: 0 0 0.5rem;
    padding-left: 1.125rem;
}

.terms-box li {
    margin-bottom: 0.25rem;
}

/* Checkbox */
.agree-checkbox {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1.25rem;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    border-radius: 14px;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agree-checkbox:hover {
    border-color: #a5b4fc;
}

.agree-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #3b82f6;
}

.agree-checkbox input[type="checkbox"]:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

.agree-checkbox label,
.agree-checkbox span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    margin: 0;
}

/* Form Section */
.form-section {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section-title i {
    font-size: 1.25rem;
    color: #64748b;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input.is-invalid {
    border-color: #ef4444;
}

.invalid-feedback {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.375rem;
}

/* Submit Button */
.submit-section {
    text-align: center;
    padding: 1rem 0;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    padding: 1.125rem 2rem;
    font-size: 1.0625rem;
    font-weight: 700;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 6px -1px rgba(99, 102, 241, 0.25),
        0 10px 20px -5px rgba(99, 102, 241, 0.3);
}

.btn-submit:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 15px -3px rgba(99, 102, 241, 0.35),
        0 16px 35px -8px rgba(99, 102, 241, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 767.98px) {
    .hero-title-sm {
        font-size: 1.5rem;
    }
    
    .progress-steps {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .agree-card-body,
    .form-section {
        padding: 1.25rem;
    }
}
