/* ===== ONLINE PUBLIC SERVICES PAGE ===== */
.online-services-section {
    padding: 50px 0 80px;
    background: #f8f9fa;
}

.service-info-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== PRIMARY SEARCH SECTION ===== */
.primary-search-section {
    margin-bottom: 50px;
}

.search-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 137, 208, 0.1);
}

.search-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.search-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.search-header-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 5px 0;
}

.search-header-text p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.search-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    padding: 6px;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 137, 208, 0.1);
}

.input-icon {
    padding: 0 15px;
    color: #999;
    font-size: 1.1rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 10px;
    font-size: 1rem;
    color: #333;
    background: transparent;
    font-family: inherit;
}

.search-input::placeholder {
    color: #999;
}

.search-input.error {
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.search-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.search-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 137, 208, 0.3);
}

.search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.search-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 12px 24px;
    border: 2px solid;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
}

.btn-register {
    border-color: #8B8B3A;
    color: #8B8B3A;
}

.btn-register:hover {
    background: #8B8B3A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 139, 58, 0.3);
}

.btn-guide {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-guide:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 137, 208, 0.3);
}

/* ===== CONTENT GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.content-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.statistics-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.statistics-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== INFO CARDS ===== */
.info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-header i {
    font-size: 1.3rem;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
}

.card-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.service-card:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 137, 208, 0.15);
    text-decoration: none;
    color: inherit;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

/* ===== SATISFACTION SECTION (Inside Services Card) ===== */
.satisfaction-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.satisfaction-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.satisfaction-header i {
    color: #FF8C00;
    font-size: 1.1rem;
}

.satisfaction-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.satisfaction-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.satisfaction-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.btn-satisfaction {
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.btn-satisfaction:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 137, 208, 0.3);
}

/* ===== STATISTICS CARD ===== */
.statistics-card {
    min-height: 600px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-box.received {
    border-left-color: var(--primary-color);
}

.stat-box.processed {
    border-left-color: #28a745;
}

.stat-box .stat-icon.received {
    background: var(--gradient-primary);
}

.stat-box .stat-icon.processed {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}


.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    font-family: 'SVN-Gilroy', sans-serif;
    line-height: 1;
}

.stat-unit {
    font-size: 0.85rem;
    color: #999;
}

.progress-section {
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.progress-header {
    text-align: center;
    margin-bottom: 25px;
}

.progress-header span {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

.progress-chart-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 450px;
    padding: 20px 0;
}

.progress-chart {
    width: 100%;
    max-width: 450px;
    height: 450px;
    margin: 0 auto;
    position: relative;
}

.progress-chart svg {
    width: 100% !important;
    height: 100% !important;
}

.progress-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.progress-percentage-display {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.progress-percentage {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'SVN-Gilroy', sans-serif;
    line-height: 1;
}

.progress-symbol {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.progress-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
    .online-services-section {
        padding: 40px 0 60px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .search-card {
        padding: 30px 25px;
    }

    .search-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .search-icon-wrapper {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .search-header-text h2 {
        font-size: 1.3rem;
    }

    .search-actions {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 575px) {
    .online-services-section {
        padding: 30px 0 50px;
    }

    .search-card {
        padding: 25px 20px;
    }

    .search-input-group {
        flex-direction: column;
        padding: 0;
        border: none;
        gap: 10px;
    }

    .search-input-group:focus-within {
        border: none;
        box-shadow: none;
    }

    .search-input {
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        padding: 14px 15px;
    }

    .search-input:focus {
        border-color: var(--primary-color);
    }

    .input-icon {
        display: none;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
        border-radius: 10px;
    }

    .info-card {
        padding: 25px 20px;
    }

    .card-header h3 {
        font-size: 1.1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .progress-chart-wrapper {
        min-height: 350px;
    }

    .progress-chart {
        max-width: 350px;
        height: 350px;
    }

    .progress-percentage {
        font-size: 2.8rem;
    }

    .progress-symbol {
        font-size: 1.8rem;
    }

    .progress-label {
        font-size: 0.9rem;
    }
}
