/* ===========================================
   Client Quote Pages - Premium Styles
   고객용 견적 페이지 - 세련된 프리미엄 디자인
   =========================================== */

/* Root Variables - Premium Design System */
:root {
    --primary-color: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #e6f2ff;
    --primary-gradient: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    --success-color: #00b894;
    --success-gradient: linear-gradient(135deg, #00b894 0%, #00d9a5 100%);
    --warning-color: #fdcb6e;
    --danger-color: #e74c3c;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a68;
    --text-muted: #8e8ea9;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-page: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 50%, #f5f7fa 100%);
    --border-color: rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(0, 102, 204, 0.15);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base Layout */
.client-page-wrapper {
    min-height: 100vh;
    background: var(--bg-page);
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Decorative Background Elements */
.client-page-wrapper::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.client-page-wrapper::after {
    content: '';
    position: fixed;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Header - Premium Style */
.client-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.client-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.client-header .logo-section {
    display: flex;
    align-items: center;
    gap: 14px;
}

.client-header .logo-section a {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.client-header .logo-section a:hover {
    transform: scale(1.02);
}

.client-header .logo-section img {
    height: 60px;
    width: auto;
}

.client-header .slogan {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 10px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Main Content */
.client-main {
    flex: 1;
    padding: 48px 24px 80px;
    position: relative;
    z-index: 1;
}

.client-quote-page {
    max-width: 520px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    color: var(--text-primary);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

/* Progress Steps - Premium Modern Style */
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: default;
}

.step.clickable {
    cursor: pointer;
}

.step.clickable:hover .step-circle {
    transform: scale(1.08);
    box-shadow: var(--shadow-md);
}

.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.step-label {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.step-connector {
    width: 64px;
    height: 2px;
    background: var(--border-color);
    margin: 0 -2px;
    margin-top: 27px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    border-radius: 2px;
}

.step.active .step-circle {
    border: none;
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 3px 16px rgba(0, 102, 204, 0.35);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 3px 16px rgba(0, 102, 204, 0.35); }
    50% { box-shadow: 0 3px 24px rgba(0, 102, 204, 0.5); }
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 700;
}

.step.completed .step-circle {
    border: none;
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 3px 12px rgba(0, 184, 148, 0.3);
}

.step.completed .step-label {
    color: var(--success-color);
}

.step-connector.completed {
    background: var(--success-gradient);
}

/* Form Section - Premium Glass Card */
.form-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0.8;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.form-control {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-light);
    transition: var(--transition);
    box-sizing: border-box;
}

.form-control:hover {
    background: #f0f4f8;
}

.form-control:focus {
    outline: none;
    background: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-sm);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234a4a68' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.help-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

.help-text.imp {
    color: #ff0000;
    line-height: 1.5;
}

/* Buttons - Premium Style */
.btn-primary {
    width: 100%;
    padding: 18px 30px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #b0b0b0 0%, #9a9a9a 100%);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Checkbox Group - Premium */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.checkbox-group:hover {
    background: #f0f4f8;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 13px;
    margin: 0;
    cursor: pointer;
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-group .help-text {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.required-consent {
    font-weight: 700 !important;
}

/* Error & Loading States */
.error-message {
    color: var(--danger-color);
    font-size: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    display: none;
    font-weight: 500;
}

.loading {
    text-align: center;
    padding: 36px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Section - Premium */
.success-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 56px 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.success-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--success-gradient);
}

.success-icon {
    font-size: 76px;
    margin-bottom: 24px;
    animation: success-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes success-bounce {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.success-section h2 {
    color: var(--success-color);
    font-size: 28px;
    margin-bottom: 14px;
    font-weight: 800;
}

.success-section p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
}

.email-highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.info-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 22px 26px;
    margin: 28px 0;
    text-align: left;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.info-box.warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%);
}

.info-box h4 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
}

.info-box ul {
    margin: 0;
    padding-left: 18px;
}

.info-box li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
}

/* Footer - Premium */
.client-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 36px 24px;
    position: relative;
    z-index: 1;
}

.client-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 36px;
    margin-bottom: 18px;
}

.footer-contact-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-contact-item span:first-child {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    line-height: 1;
}

.footer-contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    transition: var(--transition);
}

.footer-contact-item a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Trust Badges - Premium Style */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 12px 18px;
    background: var(--bg-light);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: var(--transition);
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.trust-badge span:first-child {
    font-size: 16px;
}

/* ===========================================
   Responsive Design
   =========================================== */

/* Tablet */
@media (max-width: 768px) {
    .client-header {
        padding: 20px 0;
    }

    .client-header .container {
        padding: 0 16px;
    }

    .client-header .logo-section img {
        height: 53px;
    }

    .client-header .slogan {
        font-size: 14px;
        margin-top: 10px;
    }

    .client-main {
        padding: 40px 16px 72px;
    }

    .page-header {
        margin-bottom: 40px;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .page-header p {
        font-size: 15px;
    }

    .progress-steps {
        margin-bottom: 40px;
    }

    .step-circle {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .step-connector {
        width: 44px;
        margin-top: 22px;
    }

    .step-label {
        font-size: 12px;
        margin-top: 12px;
    }

    .form-section {
        padding: 36px 28px;
        border-radius: var(--radius-md);
    }

    .form-control {
        padding: 14px 16px;
        font-size: 16px;
    }

    .btn-primary {
        padding: 16px 28px;
        font-size: 15px;
    }

    .success-section {
        padding: 48px 28px;
    }

    .success-icon {
        font-size: 64px;
    }

    .success-section h2 {
        font-size: 24px;
    }

    .footer-contact {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-contact-item {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .client-header {
        padding: 16px 0;
    }

    .client-header .logo-section img {
        height: 46px;
    }

    .client-header .slogan {
        font-size: 13px;
        margin-top: 8px;
    }

    .client-main {
        padding: 32px 14px 56px;
    }

    .page-header {
        margin-bottom: 32px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .page-header p {
        font-size: 14px;
    }

    .progress-steps {
        margin-bottom: 32px;
    }

    .step-circle {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .step-connector {
        width: 32px;
        margin-top: 20px;
    }

    .step-label {
        font-size: 11px;
        max-width: 52px;
    }

    .form-section {
        padding: 28px 22px;
    }

    .form-section::before {
        height: 3px;
    }

    .form-group {
        margin-bottom: 22px;
    }

    .form-group label {
        font-size: 13px;
    }

    .help-text {
        font-size: 12px;
    }

    .checkbox-group {
        padding: 10px;
    }

    .success-section {
        padding: 40px 22px;
    }

    .success-section::before {
        height: 3px;
    }

    .success-icon {
        font-size: 56px;
    }

    .success-section h2 {
        font-size: 22px;
    }

    .info-box {
        padding: 18px 20px;
    }

    .info-box h4 {
        font-size: 14px;
    }

    .info-box li {
        font-size: 13px;
    }

    .trust-badges {
        gap: 10px;
        margin-top: 24px;
    }

    .trust-badge {
        font-size: 12px;
        padding: 10px 14px;
    }

    .client-footer {
        padding: 28px 16px;
    }

}

/* Touch-friendly inputs */
@media (hover: none) and (pointer: coarse) {
    .form-control {
        min-height: 52px;
    }

    .btn-primary,
    .btn-secondary {
        min-height: 56px;
    }

    .checkbox-group input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

/* Extra Small Mobile (320px) */
@media (max-width: 360px) {
    .client-main {
        padding: 24px 12px 48px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .page-header p {
        font-size: 13px;
    }

    /* Progress Steps - 더 간소화 */
    .step-circle {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .step-connector {
        width: 20px;
        margin-top: 17px;
    }

    .step-label {
        font-size: 10px;
        max-width: 48px;
    }

    .form-section {
        padding: 20px 16px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 16px; /* iOS 줌 방지 */
    }

    .btn-primary {
        padding: 14px 20px;
        font-size: 14px;
    }

    .btn-secondary {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }

    .success-section {
        padding: 32px 16px;
    }

    .success-icon {
        font-size: 48px;
    }

    .success-section h2 {
        font-size: 18px;
    }

    .success-section p {
        font-size: 14px;
    }

    .info-box {
        padding: 14px 16px;
        margin: 20px 0;
    }

    .info-box h4 {
        font-size: 13px;
    }

    .info-box li {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .trust-badges {
        gap: 8px;
        margin-top: 20px;
    }

    .trust-badge {
        font-size: 11px;
        padding: 8px 12px;
    }

    .checkbox-group {
        padding: 8px;
        gap: 8px;
    }

    .checkbox-group label {
        font-size: 12px;
    }

    .checkbox-group .help-text {
        font-size: 11px;
    }

    /* 배경 효과 숨김 - 성능 향상 */
    .client-page-wrapper::before,
    .client-page-wrapper::after {
        display: none;
    }
}

/* Footer 모바일 개선 */
@media (max-width: 480px) {
    .footer-contact {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .footer-contact-item {
        justify-content: center;
        font-size: 14px;
    }

    .footer-contact-item span:first-child {
        font-size: 11px;
        min-width: 45px;
    }

    .footer-copyright {
        font-size: 12px;
        margin-top: 12px;
    }

    /* Success 페이지 버튼 전체 너비 */
    .success-section .btn-secondary {
        width: 100%;
        display: flex;
    }
}

/* 가로 모드 (Landscape) 최적화 */
@media (max-height: 500px) and (orientation: landscape) {
    .client-header {
        padding: 12px 0;
        position: relative; /* sticky 해제로 공간 확보 */
    }

    .client-header .logo-section img {
        height: 32px;
    }

    .client-header .slogan {
        display: none;
    }

    .client-main {
        padding: 20px 16px 40px;
    }

    .page-header {
        margin-bottom: 20px;
    }

    .progress-steps {
        margin-bottom: 20px;
    }

    .form-section {
        padding: 24px;
    }

    .form-group {
        margin-bottom: 16px;
    }

    .success-section {
        padding: 24px;
    }
}
