/* ========================================
   SHARED COMPONENTS CSS
   Classes comuns reutilizáveis em todo o projeto
   ======================================== */

/* ========================================
   WIZARD CARD BASE CLASS
   Common glassmorphism card pattern shared
   by network, plan, device, and addon cards
   ======================================== */
.wizard-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.wizard-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(139, 92, 246, 0.3);
}

/* ========================================
   FEATURE ITEM COMPONENT
   ======================================== */
.feature-item {

    gap: 0.75rem;
    font-size: 0.8rem;
}

.feature-item i {
    color: var(--color-main);
    font-size: 1.1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.feature-item span {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Network specific feature item styles */
.network-plan-card .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
    justify-content: center;
}

.network-plan-card .feature-item i {
    color: var(--color-main-light);
    font-size: 1.1rem;
}

.network-plan-card.selected .feature-item i {
    color: white;
}

.network-plan-card .feature-item span {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.network-plan-card.selected .feature-item span {
    color: white;
}

/* ========================================
   PAGE NAVIGATION COMPONENT
   ======================================== */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.page-navigation .btn-back {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--color-text-body);
    border: 1px solid rgba(229, 231, 235, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    min-width: auto;
    width: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-navigation .btn-back:hover {
    background: rgba(243, 244, 246, 0.95);
    border-color: var(--color-border-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-navigation .btn-back:active {
    transform: translateY(0) scale(0.98);
}

.page-navigation .btn-skip,
.page-navigation .btn-continue {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    min-width: auto;
    width: auto !important;
    box-shadow: 0 4px 15px rgba(131, 59, 246, 0.3);
}

.page-navigation .btn-skip:hover,
.page-navigation .btn-continue:hover {
    background: var(--gradient-main-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.page-navigation .btn-skip:active,
.page-navigation .btn-continue:active {
    transform: translateY(0) scale(0.98);
}

/* Network specific navigation button */
.page-navigation .btn-continue {
    background: var(--gradient-main);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.page-navigation .btn-continue:hover {
    background: var(--gradient-main-hover);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* ========================================
   FIXED BOTTOM NAVIGATION BAR
   Use with partial _page_navigation_fixed.html.
   Main content wrapper should have class main-content or has-fixed-nav for padding-bottom.
   ======================================== */
.page-navigation-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.3s ease-out;
}

.page-navigation-fixed .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 0.75rem;
}

.page-navigation-fixed .container .btn-back,
.page-navigation-fixed-right {
    align-self: center;
}

.page-navigation-fixed-countdown {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    min-width: 0;
    gap: 0.4rem;
    border-radius: 24px;
    transition: background 0.6s ease, box-shadow 0.6s ease;
}

.page-navigation-fixed-countdown-icon {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: color 0.5s ease, transform 0.3s ease;
}

.page-navigation-fixed-countdown-text {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.5s ease;
}

.page-navigation-fixed-countdown-text strong {
    color: #856404;
    transition: color 0.5s ease, transform 0.3s ease;
    display: inline-block;
}

/* ----------------------------------------
   COUNTDOWN URGENCY TIERS
   Three progressive urgency levels that
   activate as the proposal timer runs low.
   ---------------------------------------- */

/* --- Tier 1: Warning (<= 5 min) --- */
.countdown-warning .page-navigation-fixed-countdown {
    background: rgba(217, 119, 6, 0.08);
    box-shadow: 0 0 12px rgba(217, 119, 6, 0.1);
}

.countdown-warning .page-navigation-fixed-countdown-icon {
    color: #D97706;
    animation: countdownPulse 2s ease-in-out infinite;
}

.countdown-warning .page-navigation-fixed-countdown-text {
    color: #92400E;
}

.countdown-warning .page-navigation-fixed-countdown-text strong {
    color: #D97706;
    animation: countdownPulse 2s ease-in-out infinite;
}

/* --- Tier 2: Critical (<= 2 min) --- */
.countdown-critical .page-navigation-fixed-countdown {
    background: rgba(242, 84, 91, 0.08);
    box-shadow: 0 0 18px rgba(242, 84, 91, 0.15);
}

.countdown-critical .page-navigation-fixed-countdown-icon {
    color: var(--color-danger);
    animation: countdownShake 0.6s ease-in-out infinite;
}

.countdown-critical .page-navigation-fixed-countdown-text {
    color: #991B1B;
}

.countdown-critical .page-navigation-fixed-countdown-text strong {
    color: var(--color-danger);
    animation: countdownPulse 1s ease-in-out infinite;
}

/* --- Tier 3: Final Countdown (<= 30s) --- */
.countdown-extreme .page-navigation-fixed-countdown {
    background: rgba(242, 84, 91, 0.12);
    box-shadow: 0 0 24px rgba(242, 84, 91, 0.25);
}

.countdown-extreme .page-navigation-fixed-countdown-icon {
    color: var(--color-danger);
    animation: countdownShake 0.4s ease-in-out infinite;
}

.countdown-extreme .page-navigation-fixed-countdown-text strong {
    color: var(--color-danger);
    animation: countdownPulse 0.5s ease-in-out infinite;
}

.countdown-extreme.page-navigation-fixed {
    border-top: 2px solid transparent;
    animation: countdownBarGlow 1.5s ease-in-out infinite;
}

/* Per-second heartbeat tick in the extreme phase */
.page-navigation-fixed-countdown-text strong.countdown-tick {
    animation: countdownHeartbeat 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.page-navigation-fixed-right {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.page-navigation-fixed .btn-back,
.page-navigation-fixed .btn-continue,
.page-navigation-fixed .btn-skip {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
    height: 44px;
    padding: 0 1.5rem !important;
    margin: 0 !important;
    border-radius: 12px;
    font-size: inherit !important;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    box-sizing: border-box;
    vertical-align: middle;
    width: auto !important;
    position: static !important;
    overflow: visible !important;
}

.page-navigation-fixed .btn-back {
    background: #ffffff;
    color: var(--color-text-body);
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.page-navigation-fixed .btn-back:hover {
    background: #f3f4f6;
    border-color: var(--color-border-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--color-text-body);
}

.page-navigation-fixed .btn-back:active {
    transform: translateY(0) scale(0.98);
}

.page-navigation-fixed .btn-skip,
.page-navigation-fixed .btn-continue {
    background: var(--gradient-main);
    color: white;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255);
}

.page-navigation-fixed .btn-continue::before {
    content: none !important;
}

.page-navigation-fixed .btn-back .fa-arrow-left,
.page-navigation-fixed .btn-continue .fa-arrow-right {
    font-size: 0.9em;
}

.page-navigation-fixed .btn-skip:hover,
.page-navigation-fixed .btn-continue:hover {
    background: var(--gradient-main-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.page-navigation-fixed .btn-skip:active,
.page-navigation-fixed .btn-continue:active {
    transform: translateY(0) scale(0.98);
}

/* Bottom padding for main content when fixed bar is present */
.main-content,
.has-fixed-nav {
    padding-bottom: 100px;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .page-navigation-fixed .container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.6rem 1rem;
    }

    /* Timer on its own row so it doesn’t overlap Back / Continue */
    .page-navigation-fixed-countdown {
        order: -1;
        flex-basis: 100%;
        width: 100%;
        min-width: 0;
        padding: 0.35rem 0.5rem;
        justify-content: center;
    }

    .page-navigation-fixed-countdown-text {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .page-navigation-fixed-right {
        width: auto;
        justify-content: flex-end;
    }

    .page-navigation-fixed .btn-back,
    .page-navigation-fixed .btn-skip,
    .page-navigation-fixed .btn-continue {
        width: auto !important;
        padding: 0.75rem 1.25rem;
        justify-content: center;
        flex: 1;
    }

    .main-content,
    .has-fixed-nav {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .page-navigation-fixed {
        padding: 0.5rem 0;
    }

    .page-navigation-fixed .container {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .main-content,
    .has-fixed-nav {
        padding-bottom: 80px;
    }
}

/* ========================================
   LINES COUNTER COMPONENT
   ======================================== */
.lines-counter {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.lines-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-secondary);

    text-align: center;
}

.counter-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.counter-btn {
    background: var(--gradient-main);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    min-width: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    background: var(--gradient-main-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.counter-btn:active {
    transform: translateY(0) scale(0.95);
}

.lines-input {
    width: 100%;
    height: 35px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
    background: white;
    transition: border-color 0.3s ease;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.lines-input:focus {
    outline: none;
    border-color: var(--color-main);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Remove number input spinners so the value is truly centered */
.lines-input::-webkit-outer-spin-button,
.lines-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lines-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Plans specific counter styles removed -- now using shared 35px size */

/* ========================================
   COST DISPLAY COMPONENT
   ======================================== */



.cost-label {
    font-size: 0.9rem;
    color: var(--color-text-body);
}

.cost-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-main-light);
}

.cost-info {
    color: var(--color-text-body);
    cursor: pointer;
}



.devices-selection .cost-display .cost-amount {
    color: var(--color-main);
}

/* ========================================
   MODAL OVERLAY COMPONENT
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-overlay .modal-content {
    background: #ffffff !important;
    opacity: 1 !important;
}

.modal-content {
    background: #ffffff;
    opacity: 1;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 750px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 0 auto;
}

.modal-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--color-text-body);
    font-size: 1.1rem;
}

.modal-body {
    margin-bottom: 0.5rem;
}

.modal-body .form-field {
    margin-bottom: 1.5rem;
}

.modal-body label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.modal-body input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-body input:focus {
    outline: none;
    border-color: var(--color-main-light);
}

.btn-modal-continue {
    background: var(--color-main-light);
    color: white;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-modal-continue:hover {
    background: var(--color-main-dark);
}

.btn-modal-continue:disabled {
    background: var(--color-text-muted);
    cursor: not-allowed;
}

/* ========================================
   CARD SELECTED STATE COMPONENT
   ======================================== */
.card-selected {
    border-color: var(--color-main-light);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(109, 40, 217, 0.05) 100%);
    box-shadow:
        0 20px 60px rgba(139, 92, 246, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.card-selected::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-main-light);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 10;
    animation: checkmarkBounce 0.6s ease-out;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Specific card selected states */
.addon-card.selected {
    border-color: var(--color-main-light);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(109, 40, 217, 0.05) 100%);
    box-shadow:
        0 20px 60px rgba(139, 92, 246, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.addon-card.selected::after {
    width: 28px;
    height: 28px;
    font-size: 1rem;
}

.network-plan-card.selected {
    border-color: var(--color-main-light);
    border-width: 3px;
    background: linear-gradient(135deg, var(--color-main-light) 0%, var(--color-main-dark) 100%);
    color: white;
}

.network-plan-card.selected::after {
    background: var(--color-secondary);
    color: var(--color-main-light);
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
}

.plan-card.selected {
    border-color: var(--color-main-light);

    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(109, 40, 217, 0.05) 100%);
    box-shadow:
        0 20px 60px rgba(139, 92, 246, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.device-card.selected {
    border-color: var(--color-main-light);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(109, 40, 217, 0.05) 100%);
    box-shadow:
        0 20px 60px rgba(139, 92, 246, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.device-card.selected::after {
    width: 28px;
    height: 28px;
    font-size: 1rem;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes checkmarkBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* Countdown urgency animations */
@keyframes countdownPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

@keyframes countdownShake {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }

    20% {
        transform: translateX(-1.5px) rotate(-5deg);
    }

    40% {
        transform: translateX(1.5px) rotate(5deg);
    }

    60% {
        transform: translateX(-1px) rotate(-3deg);
    }

    80% {
        transform: translateX(1px) rotate(3deg);
    }
}

@keyframes countdownHeartbeat {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes countdownBarGlow {
    0%, 100% {
        border-top-color: rgba(242, 84, 91, 0.3);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1), 0 -2px 8px rgba(242, 84, 91, 0.1);
    }

    50% {
        border-top-color: rgba(242, 84, 91, 0.7);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1), 0 -2px 12px rgba(242, 84, 91, 0.3);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .page-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .page-navigation .btn-back,
    .page-navigation .btn-skip,
    .page-navigation .btn-continue {
        width: 100% !important;
    }

    .lines-counter {
        padding: 0.75rem;
    }

    .counter-btn {
        min-width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .btn-modal-continue {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   ALERT
   ======================================== */
.alert {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 20px;
}

.alert-icon {
    background: #ff9500;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.alert-text {
    color: #856404;
    font-weight: 500;
}

/* ========================================
   SELECT2 (company dropdown and other single selects)

   The Select2 CDN CSS loads AFTER this file (via the extra_css
   template block), so selectors here must have HIGHER specificity
   than the CDN defaults to avoid being overridden by the cascade.
   We scope rules under .form-field to achieve this.
   ======================================== */
.form-field .select2-container,
.modal-body .form-field .select2-container {
    width: 100% !important;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
}

#company-name-field .select2-container,
.form-field#company-name-field .select2-container {
    width: 100% !important;
    min-width: 0;
}

.form-field .select2-container--default .select2-selection--single {
    box-sizing: border-box;
    position: relative;
    width: 100%;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    height: 48px;
    padding: 0 36px 0 12px;
    display: flex;
    align-items: center;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.form-field .select2-container--default.select2-container--focus .select2-selection--single,
.form-field .select2-container--default .select2-selection--single:focus {
    border-color: var(--color-main-light);
    outline: none;
}

.form-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding: 0;
    display: block;
    width: 100%;
}

.form-field .select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0 4px;
    font-size: 1.2rem;
    line-height: 1;
    color: #6b7280;
}

.form-field .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 8px;
    top: 0;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-field .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
    border-width: 5px 4px 0 4px;
}

/* ========================================
   SIGNATURE COMPONENT
   Shared between digital_contract and contract_terms
   ======================================== */
.second-container {
    width: 100%;
    margin-top: 20px;
}

.signature-container {
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    position: relative;
    background: #f9f9f9;
    height: auto;
    touch-action: none;
    cursor: crosshair;
}

.signature-pad {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .signature-container {
        max-height: 220px;
    }

    .signature-pad {
        min-height: 200px;
    }
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.clear-btn {
    background: #73767d00;
    color: #73767D;
    border: none;
    outline: none;
    box-shadow: none;
}
.clear-btn:hover,
.clear-btn:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.signature-preview {
    text-align: center;
    margin-top: 30px;
}

.signature-line {
    position: absolute;
    bottom: 30px;
    width: 80%;
    left: 10%;
    border-top: 1px solid #bdc3c7;
    padding-top: 8px;
    text-align: center;
    color: #95a5a6;
    font-style: italic;
}

/* ========================================
   BLURRED STATE
   ======================================== */
.main-content.blurred {
    filter: blur(1px);
}

/* ========================================
   CONTAINER MAX-WIDTH OVERRIDE
   Cap Bootstrap .container at 1200px on
   large screens for a focused wizard layout
   ======================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}
