/**
 * Modern E-Commerce Form Design System
 * Clean, beautiful, and fully functional forms
 */

:root {
    --primary-color: #D0695B;
    --primary-light: #E8B5AD;
    --primary-dark: #A84D3F;
    --text-dark: #1A202C;
    --text-muted: #718096;
    --border-light: #E2E8F0;
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;
    --success: #48BB78;
    --warning: #ED8936;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    /* Reduced */
    --spacing-lg: 20px;
    /* Reduced */
    --spacing-xl: 28px;
    /* Reduced */
    --spacing-2xl: 40px;
    /* Reduced */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Scoped Styles */
.ecom-form-container {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
}

.ecom-form-container * {
    box-sizing: border-box;
}

/* ======================== Container ======================== */
.ecom-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.ecom-form-grid {
    display: flex;
    gap: 64px;
    align-items: flex-start;
    justify-content: center;
}

.ecom-main {
    flex: 1;
    min-width: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.ecom-sidebar {
    width: 310px;
    /* Narrower sidebar */
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    height: fit-content;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (max-width: 1100px) {
    .ecom-form-grid {
        gap: 40px;
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

@media (max-width: 1024px) {
    .ecom-form-grid {
        flex-direction: column !important;
    }

    .ecom-sidebar {
        width: 100%;
        margin-top: 60px;
        position: static;
    }
}

.ecom-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.ecom-main {
    transition: var(--transition);
}

/* ======================== Sidebar Card ======================== */
.ecom-summary-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    /* Reduced from var(--spacing-xl) */
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: var(--spacing-lg);
}

.ecom-summary-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-dark);
}

.ecom-summary-badge {
    display: inline-block;
    background: #E0F7E5;
    color: #22C55E;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
}

.ecom-summary-item {
    padding-bottom: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.ecom-summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ecom-summary-item-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    display: block;
    letter-spacing: 0.5px;
}

.ecom-summary-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: var(--spacing-sm);
}

.ecom-summary-item-row strong {
    font-weight: 600;
    color: var(--text-dark);
}

.ecom-summary-item-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: var(--spacing-sm);
}

.ecom-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--text-dark);
    margin-top: var(--spacing-lg);
}

.ecom-summary-total-label {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
}

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

/* ======================== Trama Premium Enhancements ======================== */

.ecom-step-section {
    margin-bottom: 60px;
    padding-top: 0;
    /* Align first step to top */
}

.ecom-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.ecom-step-header-number {
    width: 36px;
    height: 36px;
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #4A5568;
    background: white;
}

/* Completed State Styles */
.ecom-step-header.completed .ecom-step-header-number {
    display: none;
}

.ecom-step-header-check {
    display: none;
    width: 36px;
    height: 36px;
    background: #48BB78;
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.ecom-step-header.completed .ecom-step-header-check {
    display: flex;
}

.ecom-step-header-title {
    font-size: 32px;
    font-weight: 800;
    color: #1A202C;
    letter-spacing: -0.03em;
    margin: 0;
}

.ecom-step-main-title {
    font-size: 48px;
    font-weight: 900;
    color: #1A202C;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.ecom-step-edit-btn {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 1px solid #4299E1;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #4299E1;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ecom-step-edit-btn:hover {
    background: #EBF8FF;
    color: #2B6CB0;
    border-color: #2B6CB0;
}

.ecom-step-header.completed .ecom-step-edit-btn {
    display: block;
}

.ecom-continue-btn {
    width: 100%;
    background: #EDF2F7;
    color: #A0AEC0;
    border: none;
    border-radius: 12px;
    padding: 20px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

.ecom-continue-btn.active {
    background: #1A202C;
    color: white;
    cursor: pointer;
}

.ecom-continue-btn.active:hover {
    background: #334155;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Attorney Box */
.ecom-attorney-box {
    background: #FAF5F3;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    position: relative;
    border: 1px solid rgba(208, 105, 91, 0.05);
}

.ecom-attorney-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 20px;
    color: #A0AEC0;
    transition: color 0.2s ease;
}

.ecom-attorney-close:hover {
    color: #4A5568;
}

.ecom-attorney-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.ecom-attorney-img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ecom-attorney-info h5 {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    color: #1A202C;
}

.ecom-attorney-info p {
    font-size: 14px;
    color: #718096;
    margin: 2px 0 0 0;
}

.ecom-attorney-sig {
    margin-left: auto;
}

.ecom-attorney-text {
    font-size: 15px;
    line-height: 1.7;
    color: #4A5568;
    margin: 0;
}

/* Selection Cards (Trama Style) */
.ecom-trama-selections {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.ecom-trama-card {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    /* Restored gap */
    background: white;
    min-height: 64px;
}

.ecom-trama-card:hover {
    border-color: #CBD5E0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ecom-trama-card.active {
    border-color: #1A202C;
    border-width: 1.5px;
    padding: 13.5px 17.5px;
    background: white;
}

.ecom-trama-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ecom-trama-card[data-select-item="word-trademark"] .ecom-trama-icon {
    width: auto;
    min-width: 60px;
}

.ecom-trama-title {
    font-size: 15px;
    /* Refined from 17px */
    font-weight: 700;
    color: #1A202C;
    margin-bottom: 2px;
}

.ecom-trama-desc {
    font-size: 13px;
    /* Refined */
    color: #718096;
    line-height: 1.4;
}

.ecom-trama-radio {
    width: 20px;
    height: 20px;
    border: 1.5px solid #CBD5E0;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
    /* Push to the end */
}

.ecom-trama-card.active .ecom-trama-radio {
    background: #1A202C;
    border-color: #1A202C;
}

.ecom-trama-card.active .ecom-trama-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    /* Slightly larger dot */
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Upload Zone */
.ecom-upload-zone {
    border: 1px dashed #E2E8F0;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    background: #FAFAFA;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 32px;
}

.ecom-upload-zone:hover {
    border-color: #1A202C;
    background: #F8FAFC;
}

.ecom-upload-text {
    font-size: 15px;
    color: #718096;
}

.ecom-upload-text span {
    color: var(--primary-color);
    font-weight: 700;
}

.ecom-upload-hint {
    font-size: 12px;
    color: #A0AEC0;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

/* Refined Summary Sidebar */
.ecom-summary-sticky {
    position: sticky;
    top: 40px;
}

.ecom-trama-summary {
    background: #FFF5F3;
    border-radius: 14px;
    padding: 10px 18px;
    /* Slimmer padding */
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    border: none;
    min-height: 48px;
    /* Slimmer height */
}

.ecom-free-badge {
    background: #E6FFFA;
    color: #2C7A7B;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    flex-shrink: 0;
    margin-top: 1px;
    /* Nudge down for visual balance */
}

.ecom-summary-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    /* Wraps if it exceeds width, but tries to stay on one line */
}

.ecom-summary-title {
    font-size: 17px;
    font-weight: 800;
    color: #1A202C;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    /* Better baseline alignment */
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.ecom-summary-text {
    font-size: 13px;
    line-height: 1.2;
    color: #718096;
    margin-bottom: 0;
    font-weight: 500;
}

.ecom-continue-btn {
    width: 100%;
    background: #1A202C;
    color: white;
    border: none;
    border-radius: 8px;
    /* Slightly sharper but modern */
    padding: 14px 28px;
    /* Slimmer but attractive */
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ecom-continue-btn:hover {
    background: #334155;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

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

.ecom-continue-btn.inactive {
    background: #EDF2F7;
    color: #A0AEC0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ======================== Form Structure ======================== */
.ecom-form {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-sm);
}

/* ======================== Step Navigation ======================== */
.ecom-steps {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    position: relative;
}

.ecom-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-light);
    z-index: 0;
    pointer-events: none;
}

.ecom-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    color: #CBD5E0;
    /* Grayed out by default */
    transition: color 0.3s ease;
}

.ecom-step-header.active {
    color: #1A202C;
}

.ecom-step-header-number {
    width: 36px;
    height: 36px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.ecom-step {
    flex: 1;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: var(--transition);
}

.ecom-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    transition: var(--transition);
}

.ecom-step.active .ecom-step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

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

.ecom-step-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.ecom-step.active .ecom-step-title {
    color: var(--text-dark);
}

/* ======================== Form Content ======================== */
.ecom-step-content {
    display: none;
    animation: slideInUp 0.4s ease;
}

.ecom-step-content.active {
    display: block;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ecom-form-group {
    margin-bottom: var(--spacing-lg);
}

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

.ecom-form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.ecom-form-input,
.ecom-form-select,
.ecom-form-textarea {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 16px;
    /* Better for mobile to prevent zoom */
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-dark);
    transition: var(--transition);
    appearance: none;
}

.ecom-form-input:focus,
.ecom-form-select:focus,
.ecom-form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(208, 105, 91, 0.1);
}

.ecom-form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ======================== Selection Cards ======================== */
/* ======================== Class Selection Layout ======================== */
.ecom-classes-scroll-section {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 24px;
    border: 1px solid #EDF2F7;
    border-radius: 12px;
    background: #FAFAFA;
}

/* Custom Scrollbar */
.ecom-classes-scroll-section::-webkit-scrollbar {
    width: 6px;
}

.ecom-classes-scroll-section::-webkit-scrollbar-track {
    background: #F1F1F1;
    border-radius: 10px;
}

.ecom-classes-scroll-section::-webkit-scrollbar-thumb {
    background: #CBD5E0;
    border-radius: 10px;
}

.ecom-classes-scroll-section::-webkit-scrollbar-thumb:hover {
    background: #A0AEC0;
}

.ecom-selections-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
}

.ecom-class-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.ecom-class-card:hover {
    border-color: #CBD5E0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ecom-class-card.active {
    border-color: #1A202C;
    background: #FFFFFF;
}

.ecom-class-card-main {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    gap: 16px;
    cursor: pointer;
}

.ecom-class-checkbox-wrapper {
    position: relative;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.ecom-class-checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.ecom-custom-checkbox {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #FFFFFF;
    border: 2px solid #CBD5E0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ecom-class-card.active .ecom-custom-checkbox {
    background-color: #1A202C;
    border-color: #1A202C;
}

.ecom-custom-checkbox:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ecom-class-card.active .ecom-custom-checkbox:after {
    display: block;
}

.ecom-class-info {
    flex: 1;
    min-width: 0;
}

.ecom-class-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.ecom-class-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A202C;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    margin: 0;
    cursor: pointer;
}

.ecom-class-expand-btn {
    background: none;
    border: none;
    padding: 8px;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
    /* Ensure it's above other elements */
}

.ecom-class-expand-btn:hover {
    background: rgba(208, 105, 91, 0.08);
    color: var(--primary-color);
}

.ecom-class-card.expanded .ecom-class-expand-btn {
    transform: none;
    /* Reset rotation if any */
}

.ecom-class-expand-btn .v-line {
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: center;
}

.ecom-class-card.expanded .ecom-class-expand-btn .v-line {
    opacity: 0;
    transform: scaleY(0);
}

.ecom-class-card.expanded .ecom-class-expand-btn {
    color: #718096;
}

.ecom-class-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FFFFFF;
    border-top: 0 solid transparent;
}

.ecom-class-card.expanded .ecom-class-details {
    max-height: 500px;
    border-top: 1px solid #F1F5F9;
}

.ecom-class-desc {
    padding: 16px 20px 20px 58px;
    /* Aligned with title text */
    font-size: 14px;
    line-height: 1.5;
    color: #4A5568;
    font-weight: 400;
}

.unsure-card {
    border-style: solid;
}

.ecom-selections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 600px) {
    .ecom-selections {
        grid-template-columns: 1fr;
    }
}

.ecom-selection-card {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 20px;
    /* Restored gap */
    position: relative;
    min-height: 64px;
}

.ecom-selection-card:hover {
    border-color: #1A202C;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ecom-selection-card.active {
    border-color: #1A202C;
    border-width: 1.5px;
    padding: 13.5px 17.5px;
}

.ecom-selection-label {
    display: none;
    /* Hide the 'Class XX' label to match screenshot style */
}

.ecom-selection-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A202C;
    margin: 0;
}

.ecom-selection-desc {
    display: none;
    /* Hide description in grid view to match screenshot */
}

/* Add price and info icon if needed */
.ecom-selection-price {
    font-size: 15px;
    color: #4A5568;
    margin-top: 4px;
}

.ecom-selection-radio {
    width: 20px;
    height: 20px;
    border: 1.5px solid #CBD5E0;
    border-radius: 50%;
    margin-left: auto;
    position: relative;
    flex-shrink: 0;
}

.ecom-selection-card.active .ecom-selection-radio {
    background: #1A202C;
    border-color: #1A202C;
}

.ecom-selection-card.active .ecom-selection-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.ecom-selection-checkbox {
    display: none;
}

/* ======================== Buttons ======================== */
.ecom-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
}

.ecom-btn-primary {
    background: var(--primary-color);
    color: white;
}

.ecom-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.ecom-btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.ecom-btn-secondary:hover {
    background: var(--border-light);
    transform: translateY(-2px);
}

.ecom-btn-block {
    width: 100%;
    justify-content: center;
}

.ecom-btn-small {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 12px;
}

/* ======================== Info Box ======================== */
.ecom-info-box {
    background: #FEF3F0;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
}

.ecom-info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.ecom-info-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.ecom-info-content p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ======================== Helper Classes ======================== */
.ecom-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 640px) {
    .ecom-grid-2 {
        grid-template-columns: 1fr;
    }
}

.ecom-divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--spacing-xl) 0;
}

.ecom-hidden-input {
    display: none;
}

.ecom-success-message {
    background: #E0F7E5;
    color: #22C55E;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: none;
}

.ecom-success-message.show {
    display: block;
    animation: slideInUp 0.4s ease;
}

.ecom-error-message {
    background: #FEE2E2;
    color: #DC2626;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    display: none;
}

.ecom-error-message.show {
    display: block;
    animation: slideInUp 0.4s ease;
}

/* ======================== Loading State ======================== */
.ecom-btn:disabled,
.ecom-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.ecom-btn.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ======================== Mobile Summary Component ======================== */
.ecom-mobile-summary {
    display: none;
    background: #FFFFFF;
    border-bottom: 1px solid #EDF2F7;
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
}

.ecom-mobile-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
    background: #FFFFFF;
}

.ecom-mobile-summary-title {
    font-size: 18px;
    font-weight: 800;
    color: #1A202C;
    letter-spacing: -0.01em;
}

.ecom-mobile-summary-price-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.ecom-mobile-summary-price {
    font-size: 20px;
    font-weight: 900;
    color: #1A202C;
    letter-spacing: -0.02em;
}

.ecom-mobile-summary-arrow {
    transition: transform 0.3s ease;
}

.ecom-mobile-summary.active .ecom-mobile-summary-arrow {
    transform: rotate(180deg);
}

.ecom-mobile-summary-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #F7FAFC;
}

.ecom-mobile-summary.active .ecom-mobile-summary-dropdown {
    max-height: 100vh;
    overflow-y: auto;
    border-top: 1px solid #E2E8F0;
    padding-bottom: 24px;
}

#mobile-summary-dropdown #ecom-summary-content-inner {
    padding: 24px 20px;
}

@media (max-width: 1024px) {

    .ecom-form-wrapper {
        margin-top: -40px !important;
        padding-top: 0 !important;
    }

    .ecom-form-container {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .ecom-mobile-summary {
        display: block;
    }

    .ecom-main {
        padding-top: 4px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .ecom-form-container {
        padding: 0 15px !important;
    }

    .ecom-form-grid {
        flex-direction: column !important;
        gap: 32px !important;
    }

    .ecom-sidebar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .ecom-form-container {
        padding: 0 12px !important;
    }

    .ecom-form {
        padding: 0 !important;
    }

    .ecom-step-header-title {
        font-size: 22px !important;
    }

    .ecom-step-header-number,
    .ecom-step-header-check {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Scaling down the massive headers in Step 2/3 */
    .ecom-step-body h2 {
        font-size: 28px !important;
        margin-bottom: 16px !important;
    }

    .ecom-step-body p {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    .ecom-trama-card {
        padding: 12px 16px;
        gap: 12px;
    }

    .ecom-trama-icon {
        width: 36px;
        height: 36px;
    }

    .ecom-trama-title {
        font-size: 14px;
    }

    .ecom-trama-desc {
        font-size: 12px;
    }

    .ecom-classes-scroll-section {
        max-height: 350px;
    }

    .ecom-class-card-main {
        padding: 12px 14px;
        gap: 12px;
    }

    .ecom-class-title {
        font-size: 14px;
    }

    .ecom-class-desc {
        padding: 12px 14px 16px 48px;
        font-size: 13px;
    }

    .ecom-continue-btn {
        padding: 16px;
        font-size: 13px;
    }

    .ecom-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ecom-attorney-box {
        padding: 24px;
    }

    .ecom-billing-total-price {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    .ecom-step-header-title {
        font-size: 18px !important;
    }

    .ecom-step-body h2 {
        font-size: 24px !important;
    }

    .ecom-upload-zone {
        padding: 24px 16px;
    }

    .ecom-upload-text {
        font-size: 13px;
    }

    .ecom-usage-radios {
        gap: 16px;
    }

    .ecom-usage-radio-label {
        font-size: 14px;
    }

    .ecom-summary-sticky {
        padding: 16px;
        background: #F7FAFC;
        border-radius: 16px;
    }
}

/* ======================== Cart & Checkout Premium Styles ======================== */

.ecom-breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 40px 0 40px 0;
    font-size: 13px;
    gap: 8px;
}

.ecom-breadcrumb li a {
    color: #A0AEC0;
    text-decoration: none;
}

.ecom-breadcrumb li.active {
    color: #1A202C;
    font-weight: 600;
}

.ecom-breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: 8px;
    color: #CBD5E0;
}

.ecom-page-title {
    font-size: 56px;
    font-weight: 900;
    color: #1A202C;
    margin: 0 0 40px 0;
    letter-spacing: -2px;
}

.ecom-capsule-btn {
    display: inline-flex;
    align-items: center;
    background: #000000;
    color: #FFFFFF;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ecom-capsule-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ecom-capsule-btn .arrow {
    margin-left: 12px;
    font-size: 18px;
    font-weight: 300;
}

.ecom-cart-price-display {
    text-align: right;
}

.ecom-price-label {
    font-size: 14px;
    color: #718096;
    margin-bottom: 8px;
    display: block;
}

.ecom-price-amount {
    font-size: 42px;
    font-weight: 900;
    color: #1A202C;
}

.ecom-services-grid-container {
    border: 1px dashed #E2E8F0;
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
    clear: both;
}

.ecom-services-title {
    font-size: 14px;
    font-weight: 700;
    color: #A0AEC0;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.ecom-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .ecom-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ecom-services-grid {
        grid-template-columns: 1fr;
    }
}

.ecom-service-card {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #FFFFFF;
}

.ecom-service-card:hover {
    border-color: #CBD5E0;
    background: #F7FAFC;
}

.ecom-service-card.active {
    border-color: #1A202C;
    background: #F7FAFC;
}

.ecom-service-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #4A5568;
}

.ecom-service-price {
    font-weight: 600;
    color: #718096;
    font-size: 14px;
}

/* Payment Method Cards */
.ecom-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
}

.ecom-payment-card {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FFFFFF;
}

.ecom-payment-card:hover {
    border-color: #CBD5E0;
}

.ecom-payment-card.active {
    border-color: #000000;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ecom-payment-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    color: #1A202C;
}

.ecom-payment-logo img {
    height: 32px;
    object-fit: contain;
}

.ecom-checkout-note {
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
    margin: 40px 0;
    max-width: 600px;
}

.ecom-checkout-note a {
    color: #FEB2B2;
    text-decoration: none;
    font-weight: 600;
}

/* Radio circle for payment cards */
.ecom-radio-circle {
    width: 20px;
    height: 20px;
    border: 1.5px solid #CBD5E0;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.ecom-payment-card.active .ecom-radio-circle {
    border-color: #000000;
}

.ecom-payment-card.active .ecom-radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
}

.ecom-image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
    padding: 20px;
    width: 100%;
}

.ecom-preview-item-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.2s;
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.ecom-preview-img-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ecom-preview-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.ecom-remove-preview-modern {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #FF4D4D;
    border: none;
    color: #ffffff;
    cursor: pointer;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    padding: 0;
}

.ecom-remove-preview-modern:hover {
    background: #E60000;
    transform: scale(1.1);
}

.ecom-remove-preview-modern svg {
    width: 12px;
    height: 12px;
    stroke: #ffffff !important;
}


/* Final Fix for Single Image Preview - Trama Style */
.ecom-image-preview-container {
    display: none;
    width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.ecom-usage-help-text {
    margin-top: 20px;
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
    background: #F7FAFC;
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.ecom-single-preview-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    width: 100% !important;
    min-height: 80px !important;
}

.ecom-single-preview-img {
    max-width: 150px !important;
    max-height: 100px !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}

.ecom-single-remove-btn {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: #2d3748 !important;
    cursor: pointer !important;
    padding: 10px !important;
    transition: all 0.2s ease !important;
}

.ecom-single-remove-btn:hover {
    color: #e53e3e !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.ecom-single-remove-btn svg {
    width: 24px !important;
    height: 24px !important;
    stroke: currentColor !important;
}

/* Currently Using Section Styles */
.ecom-usage-radios {
    display: flex;
    gap: 32px;
    margin-bottom: 8px;
}

.ecom-usage-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #4A5568;
    cursor: pointer;
    position: relative;
}

.ecom-inuse-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.ecom-usage-radio-custom {
    width: 20px;
    height: 20px;
    border: 1.5px solid #CBD5E0;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.ecom-inuse-radio:checked+.ecom-usage-radio-custom {
    border-color: #1A202C;
    /* Match Trama dark style */
    background: #1A202C;
}

.ecom-inuse-radio:checked+.ecom-usage-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.proof-zone {
    transition: all 0.2s ease;
}

.proof-zone:hover {
    border-color: #D0695B !important;
    background: #FAF5F3 !important;
}

.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ecom-input-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.ecom-form-input.with-icon {
    padding-left: 48px !important;
}

.ecom-input-with-icon input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* ======================== International Telephone Input ======================== */
.iti {
    width: 100%;
    display: block;
}

.iti__flag-container {
    padding: 2px;
}

.iti__country-list {
    z-index: 3000 !important;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
    padding: 8px 0;
}

.iti__country {
    padding: 8px 12px;
    font-size: 14px;
}

.iti__country:hover {
    background-color: #F7FAFC;
}

.iti__selected-flag {
    background-color: transparent !important;
    border-radius: 8px 0 0 8px;
    padding-left: 12px;
}

/* Ensure the input doesn't overlap with the flag */
.ecom-form-input.iti__tel-input {
    padding-left: 52px !important;
}