/**
 * Patio/Carport Quote Form Styles
 *
 * Multi-step quote form for patio and carport products.
 * BEM prefix: ecml-pqf-
 *
 * Design tokens:
 *   Primary dark blue: #003857 / #011F30
 *   Accent red: #ff0c3a, hover #e00a33
 *   Text: #333
 *   Subtle text: #666
 *   Borders: #e0e0e0 / #ddd
 *   Container bg: #f9f9f9
 *   Border-radius: 8px (containers), 4px (inputs/buttons)
 *   Transitions: 0.2s ease
 */

/* ==========================================================================
   1. Container
   ========================================================================== */

.ecml-pqf {
    width: 900px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.5;
    color: #333;
    box-sizing: border-box;
}

.ecml-pqf *,
.ecml-pqf *::before,
.ecml-pqf *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   2. Progress Bar
   ========================================================================== */

.ecml-pqf-progress {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.ecml-pqf-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    flex: 1;
    z-index: 1;
}

/* Connecting lines between steps */
.ecml-pqf-progress__step::after {
    content: "";
    position: absolute;
    top: 18px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: #ddd;
    transition: background-color 0.2s ease;
    z-index: -1;
}

.ecml-pqf-progress__step:last-child::after {
    display: none;
}

.ecml-pqf-progress__step--completed::after {
    background: #28a745;
}

/* Step number circle */
.ecml-pqf-progress__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Step label */
.ecml-pqf-progress__label {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* Active state */
.ecml-pqf-progress__step--active .ecml-pqf-progress__number {
    background: #003857;
    color: #fff;
    border-color: #003857;
}

.ecml-pqf-progress__step--active .ecml-pqf-progress__label {
    color: #003857;
    font-weight: 600;
}

/* Completed state */
.ecml-pqf-progress__step--completed .ecml-pqf-progress__number {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

/* Progress bar responsive */
@media (max-width: 768px) {
    .ecml-pqf-progress__label {
        display: none;
    }
}

@media (max-width: 480px) {
    .ecml-pqf-progress__number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .ecml-pqf-progress__step::after {
        top: 14px;
        left: calc(50% + 18px);
        width: calc(100% - 36px);
    }
}

/* ==========================================================================
   3. Step Container
   ========================================================================== */

.ecml-pqf-step {
    padding: 10px 0;
}

.ecml-pqf-step__title {
    font-size: 24px;
    font-weight: 700;
    color: #011F30;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.ecml-pqf-step__subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

/* ==========================================================================
   4. Form Fields
   ========================================================================== */

.ecml-pqf-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ecml-pqf-field--full {
    grid-column: 1 / -1;
}

.ecml-pqf-field__label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.ecml-pqf-field__required {
    color: #ff0c3a;
}

.ecml-pqf-field__input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.ecml-pqf-field__input:focus {
    outline: none;
    border-color: #003857;
    box-shadow: 0 0 0 2px rgba(0, 56, 87, 0.15);
}

.ecml-pqf-field__input--error {
    border-color: #ff0c3a;
}

.ecml-pqf-field__input--error:focus {
    box-shadow: 0 0 0 2px rgba(255, 12, 58, 0.15);
}

.ecml-pqf-field__error {
    display: block;
    color: #d63638;
    font-size: 13px;
    margin-top: 4px;
    min-height: 0;
    line-height: 1.4;
}

.ecml-pqf-field__note {
    color: #666;
    font-size: 13px;
    font-style: italic;
    margin-top: 4px;
    line-height: 1.4;
}

.ecml-pqf-field__help {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
}

/* Card/swatch selection validation error (hidden input errors) */
.ecml-pqf-card-error {
    color: #d63638;
    font-size: 13px;
    margin: 8px 0 0;
    padding: 0;
}

.ecml-pqf-field__textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    resize: vertical;
    min-height: 120px;
    -webkit-appearance: none;
    appearance: none;
}

.ecml-pqf-field__textarea:focus {
    outline: none;
    border-color: #003857;
    box-shadow: 0 0 0 2px rgba(0, 56, 87, 0.15);
}

/* Select element styling */
select.ecml-pqf-field__input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* Fields responsive */
@media (max-width: 480px) {
    .ecml-pqf-fields {
        gap: 14px;
    }
}

@media (max-width: 360px) {
    .ecml-pqf-fields {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   5. Selection Cards
   ========================================================================== */

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

.ecml-pqf-cards--large {
    grid-template-columns: repeat(2, 1fr);
}

.ecml-pqf-cards--small {
    grid-template-columns: repeat(4, 1fr);
}

.ecml-pqf-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.ecml-pqf-card:hover {
    border-color: #003857;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ecml-pqf-card--selected {
    border-color: #003857;
    background-color: #f0f6fc;
    box-shadow: 0 0 0 1px #003857;
}

.ecml-pqf-card--selected:hover {
    border-color: #003857;
    background-color: #f0f6fc;
    box-shadow: 0 0 0 1px #003857;
}

.ecml-pqf-card--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Sheeting card hover image preview */
.ecml-pqf-card[data-hover-img] {
    overflow: hidden;
}

.ecml-pqf-card[data-hover-img]::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
        var(--hover-img) center / cover no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 6px;
}

.ecml-pqf-card[data-hover-img]:hover::before {
    opacity: 1;
}

.ecml-pqf-card[data-hover-img]:hover .ecml-pqf-card__icon {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ecml-pqf-card[data-hover-img]:hover .ecml-pqf-card__title,
.ecml-pqf-card[data-hover-img]:hover .ecml-pqf-card__desc {
    color: #fff;
    position: relative;
    z-index: 2;
}

.ecml-pqf-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    color: #003857;
}

.ecml-pqf-card__icon svg {
    width: 100%;
    height: 100%;
}

.ecml-pqf-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ecml-pqf-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 6px;
    line-height: 1.3;
}

.ecml-pqf-card__desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Small cards variant */
.ecml-pqf-cards--small .ecml-pqf-card {
    padding: 16px;
}

.ecml-pqf-cards--small .ecml-pqf-card__icon {
    width: 40px;
    height: 40px;
}

/* Cards responsive */
@media (max-width: 768px) {
    .ecml-pqf-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .ecml-pqf-cards--small {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .ecml-pqf-cards {
        gap: 10px;
    }

    .ecml-pqf-card {
        padding: 14px 10px;
    }

    .ecml-pqf-card__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .ecml-pqf-card__title {
        font-size: 13px;
    }

    .ecml-pqf-card__desc {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .ecml-pqf-cards--small {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 360px) {
    .ecml-pqf-cards--large {
        grid-template-columns: 1fr;
    }
}

/* Step responsive */
@media (max-width: 600px) {
    .ecml-pqf-step__title {
        font-size: 20px;
    }

    .ecml-pqf-step__subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   6. Section Headings
   ========================================================================== */

.ecml-pqf-section__title {
    font-size: 18px;
    font-weight: 600;
    color: #003857;
    margin: 30px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
    line-height: 1.3;
}

.ecml-pqf-step .ecml-pqf-section__title:first-child,
.ecml-pqf-section__title:first-child {
    margin-top: 0;
}

/* ==========================================================================
   7. Colour Swatches
   ========================================================================== */

.ecml-pqf-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ecml-pqf-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.ecml-pqf-swatch {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.ecml-pqf-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ecml-pqf-swatch--selected {
    border-color: #003857;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #003857;
}

.ecml-pqf-swatch--selected:hover {
    box-shadow: 0 0 0 2px white, 0 0 0 4px #003857;
}

.ecml-pqf-swatch__check {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1;
    pointer-events: none;
}

.ecml-pqf-swatch--selected .ecml-pqf-swatch__check {
    display: block;
}

.ecml-pqf-swatch__label {
    font-size: 10px;
    color: #666;
    text-align: center;
    margin-top: 4px;
    line-height: 1.2;
    word-break: break-word;
}

/* Swatches responsive */
@media (max-width: 600px) {
    .ecml-pqf-swatches {
        gap: 8px;
    }

    .ecml-pqf-swatch {
        width: 36px;
        height: 36px;
    }

    .ecml-pqf-swatch-item {
        width: 44px;
    }

    .ecml-pqf-swatch__check {
        font-size: 14px;
    }

    .ecml-pqf-swatch__label {
        font-size: 9px;
    }
}

/* ==========================================================================
   8. Colour Group
   ========================================================================== */

.ecml-pqf-colour-group {
    margin-bottom: 24px;
}

.ecml-pqf-colour-group:last-child {
    margin-bottom: 0;
}

.ecml-pqf-colour-group__title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px;
    line-height: 1.4;
}

/* ==========================================================================
   9. Carport Sheeting Options
   ========================================================================== */

.ecml-pqf-sheeting-option {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.ecml-pqf-sheeting-option:last-child {
    margin-bottom: 0;
}

.ecml-pqf-sheeting-option h4 {
    font-size: 15px;
    font-weight: 600;
    color: #003857;
    margin: 0 0 10px;
    line-height: 1.4;
}

.ecml-pqf-sheeting-option label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.ecml-pqf-sheeting-option label:last-child {
    margin-right: 0;
}

.ecml-pqf-sheeting-option input[type="checkbox"] {
    accent-color: #003857;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.ecml-pqf-sheeting-option input[type="radio"] {
    accent-color: #003857;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ==========================================================================
   10. Navigation
   ========================================================================== */

.ecml-pqf-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.ecml-pqf-nav__btn {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    line-height: 1.4;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ecml-pqf-nav__back {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.ecml-pqf-nav__back:hover {
    background: #e8e8e8;
    border-color: #ccc;
}

.ecml-pqf-nav__next {
    background: #003857;
    color: #fff;
    margin-left: auto;
}

.ecml-pqf-nav__next:hover {
    background: #011F30;
}

.ecml-pqf-nav__submit {
    background: #ff0c3a;
    color: #fff;
    margin-left: auto;
}

.ecml-pqf-nav__submit:hover {
    background: #e00a33;
}

.ecml-pqf-nav__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ecml-pqf-nav__btn:disabled:hover {
    transform: none;
}

/* Navigation focus states for accessibility */
.ecml-pqf-nav__next:focus,
.ecml-pqf-nav__back:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 56, 87, 0.3);
}

.ecml-pqf-nav__submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 12, 58, 0.3);
}

/* Navigation responsive */
@media (max-width: 600px) {
    .ecml-pqf-nav {
        margin-top: 24px;
        padding-top: 16px;
    }

    .ecml-pqf-nav__btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .ecml-pqf-nav__btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ==========================================================================
   11. Success State
   ========================================================================== */

.ecml-pqf-success {
    text-align: center;
    padding: 60px 20px;
}

.ecml-pqf-success__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    color: #28a745;
}

.ecml-pqf-success__icon svg {
    width: 100%;
    height: 100%;
}

.ecml-pqf-success__title {
    font-size: 24px;
    font-weight: 700;
    color: #011F30;
    margin: 0 0 12px;
    line-height: 1.3;
}

.ecml-pqf-success__message {
    font-size: 16px;
    color: #666;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   12. Loading / Submitting State
   ========================================================================== */

.ecml-pqf-loading {
    position: relative;
}

.ecml-pqf-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.ecml-pqf-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff0c3a;
    border-radius: 50%;
    animation: ecmlPqfSpin 1s linear infinite;
    margin: 0 auto;
}

/* Spinner positioned inside loading overlay */
.ecml-pqf-loading .ecml-pqf-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
}

/* ==========================================================================
   13. Animations
   ========================================================================== */

@keyframes ecmlPqfSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

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

/* Step transition classes */
.ecml-pqf-step--entering {
    animation: ecmlPqfSlideIn 0.3s ease forwards;
}

.ecml-pqf-step--exiting {
    animation: ecmlPqfSlideOut 0.3s ease forwards;
}

/* ==========================================================================
   Utility: Hidden steps
   ========================================================================== */

.ecml-pqf-step[hidden] {
    display: none;
}

/* ==========================================================================
   Dimension Diagrams
   ========================================================================== */

.ecml-pqf-dimension-diagram {
    text-align: center;
    margin-bottom: 24px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.ecml-pqf-dimension-diagram svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

@media (max-width: 600px) {
    .ecml-pqf-dimension-diagram {
        padding: 12px;
        margin-bottom: 16px;
    }
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    .ecml-pqf-nav,
    .ecml-pqf-progress {
        display: none;
    }

    .ecml-pqf-step {
        page-break-inside: avoid;
    }

    .ecml-pqf-card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* ==========================================================================
   Large cards: 3-column variant
   ========================================================================== */

.ecml-pqf-cards--large-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .ecml-pqf-cards--large-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 360px) {
    .ecml-pqf-cards--large-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Shed Openings Table
   ========================================================================== */

.ecml-pqf-openings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ecml-pqf-opening-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.ecml-pqf-opening-row__label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    min-width: 120px;
    flex-shrink: 0;
}

.ecml-pqf-opening-row__fields {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.ecml-pqf-opening-row__field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ecml-pqf-opening-row__field label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.ecml-pqf-opening-row__field input {
    width: 80px;
    padding: 6px 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    text-align: center;
    transition: border-color 0.2s ease;
}

.ecml-pqf-opening-row__field input:focus {
    outline: none;
    border-color: #003857;
    box-shadow: 0 0 0 2px rgba(0, 56, 87, 0.15);
}

@media (max-width: 600px) {
    .ecml-pqf-opening-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ecml-pqf-opening-row__label {
        min-width: auto;
    }
}

/* ==========================================================================
   Shed Additions Checkboxes
   ========================================================================== */

.ecml-pqf-additions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ecml-pqf-addition-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    user-select: none;
}

.ecml-pqf-addition-chip:hover {
    border-color: #003857;
}

.ecml-pqf-addition-chip input[type="checkbox"] {
    accent-color: #003857;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.ecml-pqf-addition-chip:has(input:checked) {
    border-color: #003857;
    background: #f0f6fc;
}

/* ==========================================================================
   Insulated Panel Thickness
   ========================================================================== */

.ecml-pqf-insul-thickness {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* ==========================================================================
   File Upload
   ========================================================================== */

.ecml-pqf-file-upload {
    margin-top: 0;
}

.ecml-pqf-file-upload__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.ecml-pqf-file-upload__dropzone:hover {
    border-color: #003857;
    background: #f0f6fc;
}

.ecml-pqf-file-upload__dropzone--dragover {
    border-color: #003857;
    background: #e8f0f8;
    box-shadow: 0 0 0 3px rgba(0, 56, 87, 0.1);
}

.ecml-pqf-file-upload__icon {
    margin-bottom: 8px;
    color: #003857;
}

.ecml-pqf-file-upload__text {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.ecml-pqf-file-upload__browse {
    color: #003857;
    font-weight: 600;
    text-decoration: underline;
}

.ecml-pqf-file-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ecml-pqf-file-upload__thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.ecml-pqf-file-upload__thumb {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecml-pqf-file-upload__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecml-pqf-file-upload__thumb--loading {
    background: #f0f0f0;
}

.ecml-pqf-file-upload__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.ecml-pqf-file-upload__remove:hover {
    background: rgba(220, 0, 0, 0.8);
}

@media (max-width: 480px) {
    .ecml-pqf-file-upload__dropzone {
        padding: 24px 16px;
    }

    .ecml-pqf-file-upload__thumb {
        width: 80px;
        height: 80px;
    }
}
