/* ========================================
   DentalSite Pro - Main Stylesheet
   Modern, Trust-Building Checkout Design
   ======================================== */

:root {
    /* Color Palette - Professional & Trustworthy */
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #E6F0FF;
    --accent: #00C896;
    --accent-dark: #00A077;
    
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-muted: #999999;
    
    --bg-main: #FAFAFA;
    --bg-white: #FFFFFF;
    --bg-gray: #F5F5F5;
    
    --success: #00C896;
    --warning: #FFB800;
    --error: #FF4444;
    
    --border: #E0E0E0;
    --border-light: #F0F0F0;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    
    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Crimson Pro', serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-display);
    background: linear-gradient(135deg, #F8FBFF 0%, #F0F7FF 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Trust Bar
   ======================================== */
.trust-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    box-shadow: 0 2px 12px rgba(0, 102, 255, 0.2);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.trust-item:nth-child(1) { animation-delay: 0.1s; }
.trust-item:nth-child(2) { animation-delay: 0.2s; }
.trust-item:nth-child(3) { animation-delay: 0.3s; }

.trust-item svg {
    opacity: 0.9;
}

/* ========================================
   Main Layout
   ======================================== */
.checkout-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ========================================
   Checkout Form - Left Side
   ======================================== */
.checkout-form {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
    animation: slideInLeft 0.6s ease;
}

.logo-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border-light);
}

.brand {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
   margin-bottom: -12px;
}

.brand .accent {
    color: var(--primary);
}

.tagline {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-secondary);
    font-style: italic;
}

/* ========================================
   Step Indicator
   ======================================== */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-gray);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: var(--transition);
    border: 3px solid transparent;
}

.step span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.step.active span {
    color: var(--primary);
}

.step.completed .step-number {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

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

.step-line {
    flex: 1;
    height: 3px;
    background: var(--border);
    margin: 0 16px;
    margin-bottom: 32px;
    border-radius: 2px;
    transition: var(--transition);
}

.step.completed + .step-line {
    background: var(--success);
}

/* ========================================
   Form Sections
   ======================================== */
.form-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-section.active {
    display: block;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

/* ========================================
   Form Elements
   ======================================== */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--font-display);
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-primary);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

input::placeholder {
    color: var(--text-muted);
}

.help-text {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.error-message {
    display: block;
    color: var(--error);
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

input.error,
select.error {
    border-color: var(--error);
    background: #FFF5F5;
}

/* ========================================
   Radio Cards
   ======================================== */
.domain-options,
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.radio-card,
.payment-card {
    position: relative;
    cursor: pointer;
}

.radio-card input[type="radio"],
.payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-content,
.payment-content {
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.radio-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.radio-icon {
    font-size: 32px;
}

.radio-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.radio-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.domain-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.radio-check {
    width: 24px;
    height: 0px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.radio-check::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    transition: var(--transition);
}

/* ============================================
   PROFESSIONAL RADIO/PAYMENT HOVER EFFECTS
   Smooth Lift & Glow - Option 1
   ============================================ */

/* Base State */
.radio-content,
.payment-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

/* Hover State - Subtle Lift */
input[type="radio"]:not(:checked) ~ .radio-content:hover,
input[type="radio"]:not(:checked) ~ .payment-content:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    background: #fafbfc;
    box-shadow: 
        rgba(59, 130, 246, 0.15) 0px 0px 0px 2px,
        rgba(6, 24, 44, 0.4) 0px 8px 16px -2px,
        rgba(255, 255, 255, 0.1) 0px 1px 0px inset;
}

/* Checked State */
input[type="radio"]:checked ~ .radio-content,
input[type="radio"]:checked ~ .payment-content {
    border-color: var(--primary);
    background: #FDFEFF;
    box-shadow: 
        rgba(6, 24, 44, 0.4) 0px 0px 0px 2px,
        rgba(6, 24, 44, 0.65) 0px 4px 6px -1px,
        rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
    transform: translateY(0);
}

/* Checked + Hover - Enhanced Glow */
input[type="radio"]:checked ~ .radio-content:hover,
input[type="radio"]:checked ~ .payment-content:hover {
    box-shadow: 
        var(--primary) 0px 0px 0px 2px,
        rgba(6, 24, 44, 0.65) 0px 8px 12px -1px,
        rgba(59, 130, 246, 0.3) 0px 0px 20px,
        rgba(255, 255, 255, 0.1) 0px 1px 0px inset;
}

/* Focus State for Accessibility */
input[type="radio"]:focus ~ .radio-content,
input[type="radio"]:focus ~ .payment-content {
    outline: none;
    border-color: var(--primary);
    box-shadow: 
        rgba(59, 130, 246, 0.5) 0px 0px 0px 3px,
        rgba(6, 24, 44, 0.3) 0px 4px 8px -1px;
}

/* Active/Clicking State */
input[type="radio"]:active ~ .radio-content,
input[type="radio"]:active ~ .payment-content {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}



/* ========================================
   Domain Search
   ======================================== */
.domain-input-section {
    display: none;
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-gray);
    border-radius: 16px;
}

.domain-input-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.domain-input-section1 {
    display: none;
    margin-top: 24px;
    padding: 24px;
    background: #E8E8E8;
    border-radius: 16px;
}

.domain-input-section1.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.domain-search-wrapper {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
}

.domain-search-wrapper input {
    grid-column: 1;
}

.domain-search-wrapper select {
    width: 120px;
}

.btn-search {
    padding: 14px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-display);
}

.btn-search:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

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

.domain-status {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    display: none;
}

.domain-status.available {
    display: block;
    background: #E8F8F3;
    color: var(--success);
    border: 2px solid var(--success);
}

.domain-status.unavailable {
    display: block;
    background: #FFF5F5;
    color: var(--error);
    border: 2px solid var(--error);
}

.domain-status.checking {
    display: block;
    background: var(--primary-light);
    color: var(--primary);
    border: 2px solid var(--primary);
}

/* ========================================
   Payment Methods
   ======================================== */
.payment-logo {
    width: 60px;
    height: auto;
}

.payment-icon {
    font-size: 28px;
}

.payment-name {
    font-size: 16px;
    font-weight: 600;
    margin-left: 12px;
}

/* ========================================
   Terms Checkbox
   ======================================== */
.terms-section {
    margin: 32px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    min-width: 24px;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

.checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

input[type="checkbox"]:checked ~ .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

input[type="checkbox"]:checked ~ .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ========================================
   Buttons
   ======================================== */
.form-navigation {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.btn-next,
.btn-complete,
.btn-back {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-next,
.btn-complete {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    flex: 1;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.btn-next:hover,
.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-next:active,
.btn-complete:active {
    transform: translateY(0);
}

.btn-back {
    background: var(--bg-gray);
    color: var(--text-primary);
}

.btn-back:hover {
    background: var(--border);
}

.btn-complete {
    background: linear-gradient(135deg, var(--success) 0%, var(--accent-dark) 100%);
}

/* ========================================
   Order Summary - Right Side
   ======================================== */
.order-summary {
    position: relative;
}

.summary-sticky {
    position: sticky;
    top: 20px;
    animation: slideInRight 0.6s ease;
}

/* ========================================
   Timer Box
   ======================================== */
.timer-box {
    background: linear-gradient(135deg, #FF6B35 0%, #FF4444 100%);
    color: white;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(255, 68, 68, 0.3);
}

.timer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    opacity: 0.95;
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.timer-unit {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    min-width: 80px;
}

.timer-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.timer-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 1px;
}

.timer-colon {
    font-size: 36px;
    font-weight: 700;
    opacity: 0.7;
}

.bonus-items {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.bonus-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    opacity: 0.95;
}

.bonus-item {
    font-size: 15px;
    margin-bottom: 8px;
    padding-left: 4px;
    opacity: 0.9;
}

.timer-box.expired {
    background: linear-gradient(135deg, #666 0%, #444 100%);
}

.timer-box.expired .bonus-items {
    opacity: 0.5;
    text-decoration: line-through;
}

/* ========================================
   Summary Card
   ======================================== */
.summary-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.summary-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.package-details {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.package-details.premium {
    background: linear-gradient(135deg, var(--primary-light) 0%, #E6F5FF 100%);
}

.package-badge {
    display: inline-block;
    background: var(--text-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.package-badge.premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.package-item {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
    padding-left: 4px;
}

/* ========================================
   Price Breakdown
   ======================================== */
.price-breakdown {
    margin-top: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
}

.price-row.sale {
    color: var(--success);
    font-weight: 600;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 15px;
}

.price-sale,
.price-normal {
    font-weight: 700;
    font-size: 18px;
}

.price-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

.price-row.total {
    font-size: 20px;
    font-weight: 700;
    padding-top: 16px;
}

.price-total {
    font-size: 32px;
    color: var(--primary);
}

/* ========================================
   Trust Badges
   ======================================== */
.trust-badges {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.badge {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: var(--bg-gray);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   Testimonial
   ======================================== */
.testimonial {
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF9E6 100%);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.stars {
    color: #FFB800;
    font-size: 20px;
    margin-bottom: 12px;
}

.testimonial p {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.author strong {
    display: block;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.author span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   Loading Overlay
   ======================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

.loading-overlay p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .summary-sticky {
        position: static;
    }
    
    .order-summary {
        order: -1;
    }
}

@media (max-width: 768px) {
    .checkout-form {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .domain-search-wrapper {
        grid-template-columns: 1fr;
    }
    
    .domain-search-wrapper select,
    .btn-search {
        width: 100%;
    }
    
    .trust-bar {
        gap: 20px;
        font-size: 13px;
    }
    
    .steps-indicator {
        padding: 0;
    }
    
    .step span {
        font-size: 12px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .summary-card {
        padding: 24px;
    }
    
    .timer-value {
        font-size: 36px;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-back {
        order: 2;
    }
}

@media (max-width: 480px) {
    .checkout-form {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    .brand {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .timer-unit {
        min-width: 60px;
        padding: 12px 16px;
    }
    
    .timer-value {
        font-size: 32px;
    }
}
