/* Arizalar Front CSS */
.ar-front-wrap {
    max-width: 1024px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1e293b;
}



/* Tabs */
.arf-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 16px;
    width: fit-content;
}

input[type="date"]{
    background-color: #fff!important;
}
.arf-tab {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #64748b;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.arf-tab.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* Sections */
.arf-section {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border: 1px solid #f1f5f9;
}
.arf-section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}
.arf-section-num {
    background: #0f172a;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 6px;
    min-width: 36px;
    text-align: center;
    margin-top: 2px;
}
.arf-section-header h3 { margin: 0 0 4px; font-size: 16px; color: #0f172a; }
.arf-section-header p { margin: 0; font-size: 13px; color: #64748b; }

/* Grids */
.arf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.arf-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 20px; }

/* Fields */
.arf-field { margin-bottom: 18px; }
.arf-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;

}


.site-header,
#wpadminbar,
.widget-area,
.footer,
.topbar,
.entry-header,
.site-footer,
footer,
.header {
    display: none !important;
}

/* Formani to'liq kenglikda ko'rsatish */
.ariza-form-container,
body {
    margin: 0 !important;
    padding: 10px !important;
}

html{
    margin-top: 0!important;
}

.req { color: #ef4444; }

.arf-phone-input{ 
    border-radius: 0 6px 6px 0 !important;
    width: 100%;
    padding: 8px 14px!important;
    border: 1.5px solid #e2e8f0!important;
    font-size: 14px;
    font-family: inherit;
    background: #fafbfc;
    transition: all .2s;
    box-sizing: border-box;}


.arf-input {
    width: 100%;
    padding: 8px 14px!important;
    border: 1.5px solid #e2e8f0!important;
    border-radius: 6px!important;
    font-size: 14px;
    font-family: inherit;
    background: #fafbfc;
    transition: all .2s;
    box-sizing: border-box;
}
.arf-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
    background: #fff;
}
.arf-input.error { border-color: #ef4444; background: #fef2f2; }
.arf-field small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #94a3b8;
}
.arf-hint { color: #64748b !important; font-style: italic; }

textarea.arf-input { resize: vertical; min-height: 72px; }
select.arf-input { cursor: pointer; }

/* Phone */
.arf-phone-wrap { display: flex; align-items: center; gap: 0; }
.arf-phone-prefix {
    background: #f1f5f9;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    padding: 8px 12px;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

/* File Zones */
.arf-file-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    background: #fafbfc;
    cursor: pointer;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}
.arf-file-zone:hover { border-color: #3b82f6; background: #eff6ff; }
.arf-file-zone.has-file { border-color: #22c55e; background: #f0fdf4; border-style: solid; }
.arf-file-hidden {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.arf-file-icon { font-size: 28px; display: block; margin-bottom: 6px; }
.arf-file-inner p { margin: 0 0 4px; font-size: 13px; color: #475569; }
.arf-file-inner small { font-size: 11px; color: #94a3b8; }
.arf-file-preview {
    margin-top: 8px;
    font-size: 12px;
    color: #22c55e;
    font-weight: 500;
    min-height: 0;
}

/* Photo upload */
.arf-photo-upload { display: flex; gap: 16px; align-items: flex-start; }
.arf-photo-zone { flex: 1; }
.arf-photo-preview-box {
    position: relative;
    width: 100px;
    flex-shrink: 0;
}
.arf-photo-preview-box img {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #e2e8f0;
    display: block;
}
.arf-photo-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.arf-phone-input {
    direction: ltr;
}
.arf-phone-input::placeholder {
    letter-spacing: normal;
}

.arf-phone-input.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}
.error-msg {
    font-size: 11px;
    margin-top: 5px;
    display: block;
}

/* HEADER STYLES */
.arf-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 24px;
    padding: 32px 28px;
    margin-bottom: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
}
.arf-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}
.arf-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}
.arf-header-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.arf-header h1 {
    color: #fff;
    font-size: 28px;
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.arf-header p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 14px;
}
.arf-header-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border-radius: 40px;
    padding: 6px 16px;
    margin-top: 16px;
    font-size: 12px;
    color: #fff;
}

/* FOOTER STYLES */
.arf-footer {
    margin-top: 32px;
    background: #0f172a;
    border-radius: 20px;
    padding: 28px 24px 24px;
    text-align: center;
    color: #94a3b8;
}
.arf-footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    text-align: left;
}
.arf-footer-col {
    flex: 1;
    min-width: 180px;
}
.arf-footer-col h4 {
    color: #fff;
    font-size: 14px;
    margin: 0 0 12px;
    font-weight: 600;
}
.arf-footer-col p, .arf-footer-col a {
    font-size: 12px;
    color: #94a3b8;
    margin: 6px 0;
    text-decoration: none;
    display: block;
}
.arf-footer-col a:hover {
    color: #3b82f6;
}
.arf-footer-line {
    border-top: 1px solid #334155;
    padding-top: 20px;
    font-size: 12px;
    color: #64748b;
}
.arf-footer-copyright {
    font-size: 14px;
    color:#fff;
}
.arf-footer-heart {
    color: #ef4444;
}

/* Submit section */
.arf-submit-section {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border: 1px solid #f1f5f9;
}
.arf-agree {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
    padding:  0 14px;
    background: #f8fafc;
    border-radius: 12px;
}
.arf-agree input { margin-top: 2px; width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.arf-agree label { font-size: 13px; color: #475569; cursor: pointer; }
.arf-submit-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    transition: all .3s;
    letter-spacing: .3px;
}
.arf-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.2); }
.arf-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.arf-submit-icon { font-size: 20px; }

/* Check tab */
.arf-check-box {
    background: #f1f5f9;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    max-width: 540px;
    margin: 0 auto;
}
.arf-check-icon { font-size: 48px; margin-bottom: 16px; }
.arf-check-box h3 { font-size: 22px; margin: 0 0 8px; color: #0f172a; }
.arf-check-box > p { color: #64748b; margin: 0 0 28px; font-size: 14px; }
.arf-check-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.arf-check-group .arf-input { flex: 1; text-align: center; font-size: 16px; letter-spacing: 2px; font-family: monospace; }
.arf-check-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all .2s;
}
.arf-check-btn:hover { background: #2563eb; }
.arf-check-result {
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}
.arf-check-result.pending { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.arf-check-result.approved { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.arf-check-result.rejected { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.arf-check-result.not-found { background: #f0f9ff; color: #0369a1; border: 1px solid #7dd3fc; }
.arf-check-result .arf-izoh-box { margin-top: 8px; font-size: 13px; opacity: .85; font-style: italic; }

/* Modals */
.arf-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.arf-modal.open { display: flex; }
.arf-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); }
.arf-modal-box {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: arf-pop .3s ease;
    z-index: 1;
}
@keyframes arf-pop {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
}
.arf-modal-icon { font-size: 56px; margin-bottom: 16px; }
.arf-modal-box h3 { font-size: 22px; margin: 0 0 10px; color: #0f172a; }
.arf-modal-box p { color: #64748b; margin: 0 0 24px; font-size: 14px; }
.arf-modal-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}
.arf-modal-btn:hover { background: #1e293b; }

/* Loader overlay */
.arf-loader {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(2px);
    z-index: 99998;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}
.arf-loader.show { display: flex; }
.arf-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: arf-spin .7s linear infinite;
}
@keyframes arf-spin { to { transform: rotate(360deg); } }
.arf-loader p { font-size: 14px; color: #64748b; font-weight: 500; }

@media (max-width: 768px) {
    .arf-grid-2, .arf-grid-3 { grid-template-columns: 1fr; }
    .arf-section { padding: 16px; }
    .arf-tabs { width: 100%; }
    .arf-tab { flex: 1; justify-content: center; }
    .arf-check-group { flex-direction: column; }
    .arf-photo-upload { flex-direction: column; }
    .arf-photo-preview-box { width: 100%; text-align: center; }
    .arf-photo-preview-box img { width: 100px; margin: 0 auto; }
    .arf-grid-3 {
        gap:2px;
    }
    .arf-field{
        margin-bottom: 12px;
    }
    .arf-submit-section{
        padding: 16px;
        border-radius: 16px;
    }
    .arf-submit-btn{
        padding: 12px;
    }
    .arf-photo-zone{
        width: 100%;
    }
}
/* Tavsiya holatlari uchun stillar */
#checkResult.recommended {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 4px solid #10b981;
    color: #065f46;
}

#checkResult.not-recommended {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

#checkResult.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

#checkResult.approved {
    background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%);
    border-left: 4px solid #059669;
    color: #064e3b;
}

#checkResult.rejected {
    background: linear-gradient(135deg, #fee2e2 0%, #fca5a5 100%);
    border-left: 4px solid #dc2626;
    color: #7f1d1d;
}

#checkResult.not-found {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-left: 4px solid #6b7280;
    color: #374151;
}

/* Izoh qutisi uchun stil */
.arf-izoh-box {
    margin-top: 12px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    font-size: 14px;
    border-left: 3px solid;
}

#checkResult.recommended .arf-izoh-box {
    border-left-color: #10b981;
    background: rgba(16,185,129,0.1);
}

#checkResult.not-recommended .arf-izoh-box {
    border-left-color: #ef4444;
    background: rgba(239,68,68,0.1);
}

/* Animatsiya */
#checkResult {
    transition: all 0.3s ease;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

