/* assets/css/pages/customs-calculator.css */

:root {
    --cc-bg: #0f172a;
    --cc-card: rgba(30, 41, 59, 0.6);
    --cc-border: rgba(255, 255, 255, 0.08);
    --cc-primary: #3b82f6;
    --cc-text: #f8fafc;
    --cc-muted: #94a3b8;

    --c-success: #10b981;
    --c-warning: #f59e0b;
    --c-danger: #ef4444;
}

body {
    background-color: var(--cc-bg);
}

.customs-wrapper {
    padding: 120px 0 80px;
    min-height: 80vh;
    background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 50%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent 50%);
}

.customs-header {
    text-align: center;
    margin-bottom: 50px;
}

.badge-premium {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.customs-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.customs-title span {
    background: linear-gradient(135deg, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.customs-desc {
    color: var(--cc-muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

.customs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .customs-grid {
        grid-template-columns: 1fr;
    }

    .customs-wrapper {
        padding: 140px 0 50px;
    }

    .customs-title {
        font-size: 2.4rem;
    }
}

.customs-card {
    background: var(--cc-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--cc-border);
    border-radius: 24px;
    padding: 35px;
}

.card-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.card-subtitle {
    color: var(--cc-muted);
    font-size: 0.95rem;
}

/* REGION SELECTOR */
.region-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.region-radio {
    display: block;
    cursor: pointer;
}

.region-radio input {
    display: none;
}

.region-box {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.region-radio:hover .region-box {
    background: rgba(255, 255, 255, 0.06);
}

.region-radio input:checked+.region-box {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--cc-primary);
}

.flag-icon {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: #333;
}

.region-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.r-name {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
}

.r-limit {
    color: var(--cc-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

.r-check {
    color: var(--cc-primary);
    font-size: 1.3rem;
    opacity: 0;
    transform: scale(0.5);
    transition: 0.3s;
}

.region-radio input:checked+.region-box .r-check {
    opacity: 1;
    transform: scale(1);
}

/* INPUTS */
.cc-group {
    margin-bottom: 20px;
}

.cc-label {
    display: block;
    color: var(--cc-text);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.cc-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: 0.3s;
    overflow: hidden;
}

.cc-input-wrap:focus-within {
    border-color: var(--cc-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.cc-currency {
    padding: 14px 0 14px 18px;
    color: var(--cc-muted);
    font-weight: 600;
    font-size: 1.1rem;
}

.cc-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 14px 18px 14px 10px;
    font-weight: 700;
    font-size: 1.1rem;
    outline: none;
    -moz-appearance: textfield;
}

.cc-input::-webkit-outer-spin-button,
.cc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.alert-box {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid var(--cc-primary);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.alert-box i {
    font-size: 1.1rem;
    margin-top: 2px;
}

/* RESULTS AREA */
.result-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border-color: rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.status-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--c-success);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.threshold-area {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
}

.limit-marker {
    position: absolute;
    top: 0;
    left: 100%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 2;
    transform: translateX(-1px);
}

.fs-7 {
    font-size: 0.85rem;
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.result-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rl-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rl-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.bg-info-soft {
    background: rgba(56, 189, 248, 0.15);
}

.bg-warning-soft {
    background: rgba(245, 158, 11, 0.15);
}

.bg-danger-soft {
    background: rgba(239, 68, 68, 0.15);
}

.rl-text {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.rl-text small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--cc-muted);
    display: block;
    margin-top: 3px;
}

.rl-right {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: -0.5px;
}

.total-box {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tb-title {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.tb-subtitle {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.tb-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: #34d399;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(52, 211, 153, 0.3);
}

/* CTA */
.cta-banner {
    background: linear-gradient(to right, rgba(30, 41, 59, 0.8), rgba(0, 0, 0, 0.5));
    border: 1px solid var(--cc-border);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.cb-content h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.cb-content p {
    color: var(--cc-muted);
    font-size: 1.05rem;
    margin: 0;
    max-width: 600px;
}

.btn-premium {
    display: inline-block;
    background: var(--cc-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-premium:hover {
    background: #2563eb;
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 768px) {
    .total-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .tb-amount {
        font-size: 2rem;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 20px;
    }

    .cb-content p {
        max-width: 100%;
    }
}