/* ============= Print Page Specific Styles ============= */

.print-section {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
    min-height: 100vh;
    background: var(--container-color);
}

.print__container {
    max-width: 900px;
}

/* ============= Header ============= */
.print__header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.back__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: var(--font-medium);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
}

.back__link:hover {
    color: var(--primary-dark);
}

.back__icon {
    font-size: 1.25rem;
}

.print__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.print__description {
    color: var(--text-color);
    font-size: 1.125rem;
}

/* ============= Progress Steps ============= */
.progress__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step__number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.step.active .step__number,
.step.completed .step__number {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
}

.step__label {
    font-size: var(--small-font-size);
    color: var(--text-light);
    font-weight: var(--font-medium);
    transition: color 0.3s ease;
}

.step.active .step__label,
.step.completed .step__label {
    color: var(--title-color);
}

.step__line {
    width: 80px;
    height: 2px;
    background: var(--border-color);
    margin: 0 1rem;
    transition: background 0.3s ease;
}

.step__line.completed {
    background: var(--primary-color);
}

/* ============= Form Steps ============= */
.print__form {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.form__step {
    display: none;
}

.form__step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============= Upload Area ============= */
.upload__area {
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.upload__area:hover {
    border-color: var(--primary-color);
    background: rgba(251, 191, 36, 0.05);
}

.upload__area.dragover {
    border-color: var(--primary-dark);
    background: rgba(251, 191, 36, 0.1);
    transform: scale(1.02);
}

.upload__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--title-color);
}

.upload__text {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.file__input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.btn__upload {
    margin-bottom: 1rem;
}

.upload__formats {
    font-size: var(--small-font-size);
    color: var(--text-light);
    margin-top: 1rem;
}

/* ============= Files List ============= */
.files__list {
    margin-top: 2rem;
    display: none;
}

.files__list.show {
    display: block;
}

.file__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--container-color);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.file__item:hover {
    background: var(--border-color);
}

.file__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.file__info {
    flex: 1;
}

.file__name {
    font-weight: var(--font-medium);
    color: var(--title-color);
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.file__size {
    font-size: var(--small-font-size);
    color: var(--text-light);
}

.file__remove {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.file__remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* ============= Configuration ============= */
.config__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.config__group {
    display: flex;
    flex-direction: column;
}

.config__group.full-width {
    grid-column: 1 / -1;
}

.config__label {
    font-weight: var(--font-semibold);
    color: var(--title-color);
    margin-bottom: 1rem;
}

.config__select {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: var(--normal-font-size);
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.config__select:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    outline: none;
}

.config__textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: var(--normal-font-size);
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.config__textarea:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    outline: none;
}

/* ============= Radio Options ============= */
.radio__group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio__option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio__option:hover {
    border-color: var(--primary-color);
}

.radio__option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio__custom {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio__custom::after {
    content: '';
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: var(--primary-dark);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.radio__option input[type="radio"]:checked ~ .radio__custom {
    border-color: var(--primary-dark);
}

.radio__option input[type="radio"]:checked ~ .radio__custom::after {
    transform: scale(1);
}

.radio__option input[type="radio"]:checked ~ .radio__content .radio__title {
    color: var(--primary-dark);
    font-weight: var(--font-semibold);
}

.radio__option input[type="radio"]:checked {
    & ~ {
        .radio__option {
            border-color: var(--primary-dark);
            background: rgba(251, 191, 36, 0.05);
        }
    }
}

.radio__option:has(input[type="radio"]:checked) {
    border-color: var(--primary-dark);
    background: rgba(251, 191, 36, 0.05);
}

.radio__content {
    flex: 1;
}

.radio__title {
    display: block;
    font-weight: var(--font-medium);
    color: var(--title-color);
    margin-bottom: 0.25rem;
}

.radio__price {
    display: block;
    font-size: var(--small-font-size);
    color: var(--text-light);
}

/* ============= Quantity Control ============= */
.quantity__control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity__btn {
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    background: white;
    color: var(--title-color);
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity__btn:hover {
    border-color: var(--primary-dark);
    background: rgba(251, 191, 36, 0.1);
    color: var(--primary-dark);
}

.quantity__input {
    width: 5rem;
    height: 3rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: var(--font-semibold);
    transition: all 0.3s ease;
}

.quantity__input:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
    outline: none;
}

/* ============= Contact Grid ============= */
.contact__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ============= Order Summary ============= */
.order__summary {
    background: var(--container-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.summary__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--title-color);
}

.summary__item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--text-color);
}

.summary__item span:last-child {
    font-weight: var(--font-semibold);
    color: var(--title-color);
}

.summary__divider {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
}

.summary__total {
    font-size: 1.25rem;
    padding: 1rem 0 0;
}

.summary__total span:last-child {
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.summary__note {
    font-size: var(--small-font-size);
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

/* ============= Form Actions ============= */
.form__actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn__prev {
    margin-right: auto;
}

.btn__submit {
    gap: 0.75rem;
}

.submit__icon {
    font-size: 1.25rem;
}

/* ============= Modal ============= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal__content {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    max-width: 500px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal__icon {
    width: 5rem;
    height: 5rem;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.modal__title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--title-color);
}

.modal__text {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal__order {
    background: var(--container-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.modal__order strong {
    color: var(--primary-dark);
    font-size: 1.25rem;
}

.modal__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ============= Responsive ============= */
@media screen and (max-width: 768px) {
    .print-section {
        padding-top: calc(var(--header-height) + 1rem);
    }

    .back__link {
        position: static;
        margin-bottom: 1.5rem;
    }

    .print__title {
        margin-top: 0;
    }

    .progress__steps {
        padding: 1.5rem 1rem;
    }

    .step__number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .step__label {
        font-size: 0.75rem;
    }

    .step__line {
        width: 40px;
        margin: 0 0.5rem;
    }

    .print__form {
        padding: 1.5rem;
    }

    .config__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form__actions {
        flex-direction: column;
    }

    .btn__prev {
        margin-right: 0;
        order: 2;
    }

    .btn__next,
    .btn__submit {
        order: 1;
    }

    .modal__content {
        margin: 1rem;
        padding: 2rem;
    }

    .modal__actions {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .upload__area {
        padding: 2rem 1rem;
    }

    .upload__icon {
        font-size: 3rem;
    }

    .upload__title {
        font-size: 1.25rem;
    }

    .file__item {
        flex-wrap: wrap;
    }

    .quantity__control {
        width: 100%;
    }

    .quantity__input {
        flex: 1;
    }
}

