/* Order Page Specifics */
.order-main {
    min-height: 100vh;
    padding: 40px 0;
    background: var(--bg-light);
    scroll-margin-top: calc(85px + var(--safe-top, 0px));
}

.order-main .container {
    padding-left: var(--mobile-container-padding);
    padding-right: var(--mobile-container-padding);
}

.solid-nav {
    background: white;
    box-shadow: var(--shadow-sm);
}

.solid-nav .nav-container {
    gap: 12px;
}

.solid-nav .mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .solid-nav .nav-container {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .solid-nav .back-link {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .solid-nav .lang-toggle {
        margin-left: auto;
    }
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-weight: 500;
}

.back-link:hover {
    color: var(--primary);
}

/* Progress Bar */
.progress-container {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.progress-bar {
    height: 6px;
    background: rgba(226, 232, 240, 0.8);
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 0.4s linear;
}

.steps-indicator {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
}

.steps-indicator .step.active {
    color: var(--primary);
}

.steps-indicator .step {
    position: relative;
    padding-bottom: 6px;
}

.steps-indicator .step.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 999px;
}

/* Wizard Form */
.wizard-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--border);
}

/* Pricing Section */
.pricing-section {
    margin-bottom: 40px;
}

.pricing-panel {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.pricing-title {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.pricing-heading {
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 6px;
}

.pricing-subtext {
    color: var(--gray);
    margin-bottom: 12px;
}

.pricing-lines {
    line-height: 1.7;
}

.pricing-note {
    margin-top: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

.details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
    gap: 28px;
    align-items: start;
    margin-top: 8px;
}

.details-spacer {
    height: 14px;
}

.photo-examples {
    margin-top: 30px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.examples-header {
    margin-bottom: 16px;
}

.examples-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark);
}

.examples-tag {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.examples-header h3 {
    margin-bottom: 6px;
}

.examples-header p {
    color: var(--gray);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.example-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.example-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f8fafc;
    display: block;
}

.example-card figcaption {
    padding: 10px 12px;
    font-weight: 600;
}

.scroll-hint {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 20;
}

.scroll-hint.show {
    opacity: 1;
}

.scroll-hint i {
    animation: hint-bounce 1.6s infinite;
}

@keyframes hint-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

.details-fields {
    display: flex;
    flex-direction: column;
}

.details-fields .span-full {
    width: 100%;
}

.details-grid .details-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-content: start;
}

.details-grid .details-fields .span-full {
    grid-column: 1 / -1;
}

.details-grid .details-fields .form-group {
    margin-bottom: 0;
}


@media (max-width: 900px) {
    .details-grid .details-fields {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 2rem;
    margin-bottom: 10px;
    text-align: center;
}

.step-desc {
    text-align: center;
    color: var(--gray);
    margin-bottom: 40px;
}

/* Step 0 Specifics */
#step0 .selection-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

#step0 .card-content {
    padding: 40px 30px;
    height: 100%;
    justify-content: center;
}

#step0 h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

#step0 p {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 20px;
}

#step0 .icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

/* Common Selection Grid */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.selection-card {
    cursor: pointer;
    position: relative;
}

.selection-card input {
    position: absolute;
    opacity: 0;
}

.card-content {
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--surface);
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.06);
}

.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    color: var(--gray);
}

.selection-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.selection-card-link .card-content {
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.selection-card-link:hover .card-content {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.08);
}

.selection-card-link:hover .card-icon {
    color: var(--primary);
}

.selection-card input:checked+.card-content {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.08);
}

.selection-card input:checked+.card-content .card-icon {
    color: var(--primary);
}

.price-tag {
    display: inline-block;
    margin-top: auto;
    background: var(--dark);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group select,
.form-group option {
    color: var(--dark);
}

.label {
    display: block;
    font-weight: 600;
    color: var(--dark);
}

.input-hint {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
    margin-top: 4px;
}

.select-input,
.text-input,
.text-area,
.text-area-small {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(203, 213, 224, 0.8);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    background: #f8fafc;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.text-input,
.select-input {
    height: 48px;
}

.select-input:focus,
.text-input:focus,
.text-area:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.7);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.text-input::placeholder,
.text-area::placeholder,
.text-area-small::placeholder {
    color: rgba(74, 85, 104, 0.7);
}

.text-area {
    min-height: 120px;
    resize: vertical;
}

.text-area-small {
    min-height: 80px;
    resize: vertical;
}

/* Counter */
.counter-input {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 150px;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--light-gray);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

.counter-btn:hover {
    background: var(--bg-light);
}

#facesCount {
    text-align: left;
    border: 1px solid rgba(203, 213, 224, 0.8);
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    color: var(--dark);
    background: #f8fafc;
    padding-right: 36px;
}

@media (max-width: 768px) {
    .solid-nav .mobile-menu-btn {
        display: none;
    }
}

#facesCount option {
    color: var(--dark);
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.radio-option:hover {
    background: var(--bg-light);
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--light-gray);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.06);
}

.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--gray);
    margin-bottom: 15px;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-light);
}

.nav-buttons .btn {
    border-radius: 14px;
    padding: 14px 28px;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.28);
}

.nav-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(245, 158, 11, 0.3);
}

.nav-buttons .btn.btn-outline,
.nav-buttons .btn.btn-success {
    background: var(--primary);
    color: var(--white);
    border: none;
}

.nav-buttons .btn.btn-outline:hover,
.nav-buttons .btn.btn-success:hover {
    background: var(--primary-dark);
}

/* Review Panel */
.review-panel {
    background: var(--surface-muted);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.order-note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

.price-calculator {
    margin-top: 0;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.calculator-title {
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.calculator-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calculator-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--gray-dark, #1f2937);
}

.calculator-total {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 700;
}

#orderInfoModal .toast-card {
    max-width: 520px;
    width: min(92vw, 520px);
}

#orderInfoModal .toast-desc {
    margin-bottom: 12px;
}

#orderInfoModal .text-area-small {
    background: #fff;
}

.order-summary-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.order-summary-list li>span:first-child::after {
    content: ":";
    margin-left: 6px;
}

.order-summary-list li>span:last-child {
    text-align: right;
    font-weight: 600;
}

.highlight-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Optimization for Order Page */
@media (max-width: 768px) {
    .order-main {
        padding: 20px 0;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .example-card img {
        height: 200px;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .price-calculator {
        margin-top: 20px;
    }

    .wizard-form {
        padding: 25px 20px;
    }

    .step-title {
        font-size: 1.6rem;
    }

    .step-desc {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    .selection-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #step0 .selection-grid {
        grid-template-columns: 1fr;
    }

    .card-content {
        padding: 25px 15px;
    }

    .progress-container {
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .steps-indicator {
        font-size: 0.68rem;
        gap: 6px;
        line-height: 1.2;
    }

    .steps-indicator .step {
        flex: 1;
        text-align: center;
        padding-bottom: 8px;
    }

    .steps-indicator .step span {
        display: none;
        /* Hide text on very small screens if needed, or keep for clarity */
    }

    /* Show only icon or number on mobile indicator if it gets too cramped */
    @media (max-width: 400px) {
        .steps-indicator .step {
            font-size: 0.65rem;
        }
    }

    .nav-buttons {
        flex-direction: column-reverse;
        gap: 12px;
        margin-top: 30px;
    }

    .nav-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .text-input,
    .select-input,
    .text-area {
        font-size: 16px;
        /* Prevents auto-zoom on iOS */
        padding: 12px;
        height: auto;
        min-height: 48px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .review-panel {
        padding: 15px;
    }

    .order-summary-list {
        font-size: 0.9rem;
    }

    .upload-area {
        padding: 28px 18px;
    }

    .details-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .wizard-form {
        padding: 20px 15px;
    }

    .step-title {
        font-size: 1.3rem;
    }

    .card-icon {
        width: 32px;
        height: 32px;
    }

    .price-tag {
        font-size: 0.8rem;
    }

    .promo-code-section {
        margin-bottom: 24px;
    }

    .promo-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: var(--gray);
        font-size: 0.9rem;
        cursor: pointer;
        padding: 8px 12px;
        border-radius: 8px;
        transition: all 0.2s ease;
    }

    .promo-toggle:hover {
        color: var(--primary);
        background: rgba(245, 158, 11, 0.1);
    }

    .promo-toggle i {
        width: 16px;
        height: 16px;
    }

    .promo-input-wrapper {
        display: flex;
        gap: 10px;
        margin-top: 12px;
        animation: slideDown 0.3s ease;
        flex-direction: column;
        align-items: stretch;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .promo-input-wrapper .text-input {
        flex: 1;
        max-width: 100%;
    }

    .promo-input-wrapper .btn {
        width: 100%;
        justify-content: center;
    }

    .promo-message {
        margin-top: 10px;
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 500;
        animation: fadeIn 0.3s ease;
    }

    .promo-message.success {
        background: rgba(16, 185, 129, 0.12);
        color: #059669;
        border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .promo-message.error {
        background: rgba(239, 68, 68, 0.12);
        color: #dc2626;
        border: 1px solid rgba(239, 68, 68, 0.3);
    }

    .promo-discount-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(16, 185, 129, 0.12);
        color: #059669;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 600;
        margin-top: 10px;
    }

    .promo-discount-badge i {
        width: 14px;
        height: 14px;
    }

}

/* Promo Success Overlay */
.promo-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.promo-success-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.promo-success-content {
    background: white;
    padding: 45px 55px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: popIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 400px;
    width: 100%;
}

.promo-success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary), #fbbf24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.8s infinite ease-in-out;
}

.promo-success-icon i {
    width: 45px;
    height: 45px;
    color: white;
}

.promo-success-discount {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.promo-success-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.promo-success-subtitle {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 28px;
}

.promo-success-content .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
}

.promo-success-content .btn i {
    width: 18px;
    height: 18px;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.45);
    }

    50% {
        box-shadow: 0 0 0 18px rgba(245, 158, 11, 0);
    }
}

@media (max-width: 480px) {
    .promo-success-content {
        padding: 35px 25px;
        margin: 15px;
    }

    .promo-success-title {
        font-size: 1.35rem;
    }

    .promo-success-icon {
        width: 75px;
        height: 75px;
    }

    .promo-success-icon i {
        width: 38px;
        height: 38px;
    }
}
