/* cheamacurier.ro - DefaultTheme custom styles */
/* Stilurile custom se adaugă aici - Bootstrap 5 este baza */

/* ==========================================================================
   Stepper
   ========================================================================== */

.stepper {
    gap: 0;
}

.stepper__step {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    min-width: 2.5rem;
}

.stepper__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}

.stepper__circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    background: #dee2e6;
    color: #6c757d;
    flex-shrink: 0;
}

.stepper__step--active .stepper__circle {
    background: #0d6efd;
    color: #fff;
}

.stepper__step--done .stepper__circle {
    background: #198754;
    color: #fff;
}

.stepper__label {
    font-size: 0.7rem;
    color: #6c757d;
    white-space: nowrap;
}

.stepper__step--active .stepper__label {
    color: #0d6efd;
    font-weight: 600;
}

.stepper__step--done .stepper__label {
    color: #198754;
}

.stepper__connector {
    flex: 1;
    height: 2px;
    background: #dee2e6;
    align-self: flex-start;
    margin-top: 1rem;
    min-width: 1rem;
}

@media (max-width: 575.98px) {
    .stepper__connector {
        min-width: 0;
    }
}

/* ==========================================================================
   Order flow - general
   ========================================================================== */

.cursor-pointer {
    cursor: pointer;
}

/* Selection card hints - shared by type-selector and parcel-form */
.card-hint {
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.card-hint-sm {
    font-size: 0.65rem;
    margin-top: 0.1rem;
}

/* Type selection cards (step 1) */
.type-card {
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.type-card:hover,
.type-card:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.type-card.border-primary {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.type-card-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #fff;
    pointer-events: none;
}

/* Preset size cards (step 2) */
.preset-card {
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    cursor: pointer;
}

.preset-card__icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .preset-card__icon {
        width: 56px;
        height: 56px;
    }
}

.preset-card:hover,
.preset-card:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.preset-card.border-primary {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Provider cards (step 5) */
.provider-card {
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

.provider-card:hover {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.provider-logo {
    max-height: 40px;
    max-width: 100px;
    object-fit: contain;
}

/* Locker list */
.locker-list .list-group-item {
    cursor: pointer;
}

.locker-list .list-group-item:has(input:checked) {
    background-color: #f0f7ff;
    border-color: #0d6efd;
}

/* Step 7 sticky price card */
@media (max-width: 991.98px) {
    .position-sticky {
        position: static !important;
    }
}

/* ==========================================================================
   intl-tel-input — Bootstrap 5 integration
   ========================================================================== */

/* Make the iti wrapper fill its Bootstrap column */
.iti {
    width: 100%;
}

/* intl-tel-input floating dropdown container — must not inherit width: 100% */
.iti.iti--container {
    width: auto;
}

/* Bootstrap focus ring: ensure input stacks above the flag button on focus */
.iti .form-control:focus {
    z-index: 1;
}

/* Bootstrap validation: propagate is-invalid from iti wrapper to .invalid-feedback sibling.
   intl-tel-input wraps the input, so Bootstrap's ".is-invalid ~ .invalid-feedback" can't see
   the input directly — we add .is-invalid to the wrapper in JS and use this rule. */
.iti.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Locked country (onlyCountries = single entry):
   separateDialCode forces allowDropdown=true in v26, so we visually suppress the
   dropdown by hiding the arrow and making the flag area non-interactive. */
.iti--country-locked .iti__arrow {
    display: none;
}
.iti--country-locked .iti__selected-flag {
    cursor: default;
    pointer-events: none;
}

#hero {
    background-size: cover;
    background-position: center;
    min-height: 460px;
}

#hero.bg-gls {
    background-image: url("/img/bg/gls.webp");
}

#hero.bg-sameday {
    background-image: url("/img/bg/sameday.webp");
}

@media (max-width: 575.98px) {
    #hero {
        background-position: 35% center;
    }
}
