/* ==========================================================================
   Andijon Viloyati Imtiyoz va Imkoniyatlar Portali - Maxsus Qo'shimcha Stillar
   ========================================================================== */

/* Hero Banner Overlay with Generated Image */
.preloader {
    animation: fadeOutPreloader 0.5s ease 0.6s forwards !important;
    pointer-events: none !important;
}

@keyframes fadeOutPreloader {
    0% { opacity: 1; visibility: visible; }
    99% { opacity: 0; visibility: visible; }
    100% { opacity: 0; visibility: hidden; display: none !important; }
}

.hero-portal-wrap {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px 0;
    overflow: hidden;
}

.hero-portal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-portal-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.42) contrast(1.1);
}

.hero-portal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 40%, rgba(7, 196, 44, 0.18) 0%, rgba(13, 14, 17, 0.88) 60%, #0d0e11 100%);
    z-index: 2;
}

.hero-portal-content {
    position: relative;
    z-index: 5;
}

/* Badges */
.badge-gov {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(7, 196, 44, 0.12);
    border: 1px solid rgba(7, 196, 44, 0.35);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    color: #fff;
}

/* Strategic Resource Cards */
.resurs-card {
    background: rgba(25, 28, 34, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.resurs-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0.6;
    transition: opacity 0.3s;
}

.resurs-card:hover {
    transform: translateY(-6px);
    border-color: rgba(7, 196, 44, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(7, 196, 44, 0.15);
}

.resurs-card:hover::before {
    opacity: 1;
}

.resurs-card .icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(7, 196, 44, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 20px;
}

/* Guarantee breakdown visualization (30% + 30% + 15% + 25%) */
.guarantee-bar-wrap {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.guarantee-bar {
    display: flex;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
}

.bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.bar-state { background: #07C42C; color: #000; }
.bar-fund { background: #16a34a; }
.bar-bank { background: #22c55e; }
.bar-borrower { background: #eab308; color: #000; }

.guarantee-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* Calculator Card */
.calc-card {
    background: linear-gradient(135deg, rgba(20, 23, 29, 0.95) 0%, rgba(13, 15, 18, 0.98) 100%);
    border: 1px solid rgba(7, 196, 44, 0.25);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.calc-range-wrap {
    margin-bottom: 24px;
}

.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    margin: 14px 0;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(7, 196, 44, 0.8);
    transition: transform 0.1s;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calc-result-box {
    background: rgba(7, 196, 44, 0.06);
    border: 1px solid rgba(7, 196, 44, 0.2);
    border-radius: 14px;
    padding: 24px;
}

/* Pill selector buttons */
.calc-type-btn {
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.calc-type-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(7, 196, 44, 0.4);
}

/* Amnistiya / Moratoriy Feature Checklist */
.feature-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.feature-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(7, 196, 44, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Andijon District Grid */
.district-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.district-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.district-tag:hover {
    background: rgba(7, 196, 44, 0.15);
    border-color: var(--primary);
    color: #fff;
}

/* Success notification modal/toast */
.toast-notice {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: #15181e;
    border: 1px solid #07C42C;
    border-radius: 12px;
    padding: 16px 24px;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    display: none;
    animation: slideUpToast 0.3s ease;
}

@keyframes slideUpToast {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Hide Cursor Trail globally */
.cursor-trail,
#trail {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* ===================================================
   Ariza Qoldirish Shakli (Form Inputs & Textarea)
   =================================================== */
#andijonCtaForm .tf-input,
#andijonCtaForm input[type="text"],
#andijonCtaForm input[type="tel"],
#andijonCtaForm select,
#andijonCtaForm textarea {
    display: block !important;
    width: 100% !important;
    background: rgba(13, 16, 22, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    outline: none !important;
}

/* Specific Select Styling */
#andijonCtaForm select {
    height: 50px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 40px !important;
    cursor: pointer;
}

/* Textarea Distinct Border and Sizing */
#andijonCtaForm textarea,
#andijonCtaForm textarea.tf-input {
    height: 115px !important;
    min-height: 100px !important;
    border-radius: 10px !important;
    resize: vertical !important;
    padding: 14px 16px !important;
    line-height: 1.6 !important;
}

/* Hover State */
#andijonCtaForm .tf-input:hover,
#andijonCtaForm input:hover,
#andijonCtaForm select:hover,
#andijonCtaForm textarea:hover {
    border-color: rgba(255, 255, 255, 0.42) !important;
    background: rgba(17, 21, 29, 0.95) !important;
}

/* Active / Focus Glow State */
#andijonCtaForm .tf-input:focus,
#andijonCtaForm input:focus,
#andijonCtaForm select:focus,
#andijonCtaForm textarea:focus {
    border-color: #07C42C !important;
    background: rgba(18, 24, 32, 1) !important;
    box-shadow: 0 0 0 3px rgba(7, 196, 44, 0.22), inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    outline: none !important;
}

/* Placeholder Styling - Dimmed & Muted so it does NOT look like filled text */
#andijonCtaForm input::placeholder,
#andijonCtaForm textarea::placeholder,
#andijonCtaForm .tf-input::placeholder,
.portal-input::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.35) !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    font-style: normal !important;
    opacity: 1 !important;
}

#andijonCtaForm input::-webkit-input-placeholder,
#andijonCtaForm textarea::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.35) !important;
    opacity: 1 !important;
}

#andijonCtaForm input::-moz-placeholder,
#andijonCtaForm textarea::-moz-placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
    opacity: 1 !important;
}

