/* =========================================================
   pincode-finder.css
   EMARKET24 / Shuvam Infotech
========================================================= */

:root {
            --primary: #6C63FF;
            --primary-dark: #554fd8;
            --secondary: #36D1DC;
            --accent: #FF6584;
            --light-bg: #f8faff;
            --dark-text: #1a1d29;
            --light-text: #6c757d;
            --white: #ffffff;
            --card-shadow: 0 15px 35px rgba(108, 99, 255, 0.08);
            --hover-shadow: 0 25px 50px rgba(108, 99, 255, 0.15);
            --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            --gradient-dark: linear-gradient(135deg, var(--primary-dark) 0%, #5B86E5 100%);
            --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #FF8E53 100%);
        }
        
        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--light-bg);
            color: var(--dark-text);
            line-height: 1.7;
            overflow-x: hidden;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        
        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* Hero Section */
        .hero-section {
            background: var(--gradient-dark);
            color: white;
            padding: 6rem 0 5rem;
            position: relative;
            overflow: hidden;
            clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTAwMCAxMDAwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxMDAwIiBoZWlnaHQ9IjEwMDAiIGZpbGw9IiNmZmZmZmYiIGZpbGwtb3BhY2l0eT0iMC4wMyIvPjxwYXRoIGQ9Ik0tNTAgNTAwbDExMDAgMEwxMDUwIDUwMHoiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZmZmZiIgc3Ryb2tlLW9wYWNpdHk9IjAuMDciIHN0cm9rZS13aWR0aD0iNTAiLz48cGF0aCBkPSJNNTAwIC0xMDBsMCAxMjAwTDUwMCAxMTAweiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utb3BhY2l0eT0iMC4wNyIgc3Ryb2tlLXdpZHRoPSI1MCIvPjwvc3ZnPg==');
            opacity: 0.1;
        }

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

        .hero-title {
            font-weight: 800;
            font-size: 3.2rem;
            margin-bottom: 1.5rem;
            line-height: 1.2;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .hero-subtitle {
            font-size: 1.3rem;
            margin-bottom: 2.5rem;
            opacity: 0.9;
            font-weight: 400;
        }

        .hero-illustration {
            position: relative;
            height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-svg {
            width: 100%;
            height: 100%;
            filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
        }

        /* Cards & Sections */
        .section-title {
            font-weight: 700;
            color: var(--dark-text);
            margin-bottom: 2.5rem;
            position: relative;
            padding-bottom: 15px;
            font-size: 2.2rem;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 80px;
            height: 5px;
            background: var(--gradient);
            border-radius: 5px;
        }

        .section-title.center::after {
            left: 50%;
            transform: translateX(-50%);
        }

        .card {
            border: none;
            border-radius: 20px;
            transition: all 0.4s ease;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            background: var(--white);
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: var(--hover-shadow);
        }

        .search-card {
            background: var(--white);
            border-radius: 20px;
            padding: 2.5rem;
            box-shadow: var(--card-shadow);
            position: relative;
            overflow: hidden;
            z-index: 1;
            border-top: 5px solid var(--primary);
        }

        .search-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0icGF0dGVybiIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBwYXR0ZXJuVHJhbnNmb3JtPSJyb3RhdGUoNDUpIj48cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjZmZmZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDMiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
            opacity: 0.5;
            z-index: -1;
        }

        .search-icon {
            width: 90px;
            height: 90px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            background: rgba(108, 99, 255, 0.1);
            border-radius: 50%;
            color: var(--primary);
            font-size: 2.2rem;
            transition: all 0.4s ease;
            border: 2px solid rgba(108, 99, 255, 0.2);
        }

        .search-card:hover .search-icon {
            background: var(--gradient);
            color: white;
            transform: scale(1.1) rotate(5deg);
            border-color: transparent;
        }

        .btn-primary-custom {
            background: var(--gradient);
            border: none;
            color: white;
            padding: 1rem 2rem;
            border-radius: 12px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn-primary-custom::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--gradient-dark);
            transition: all 0.4s ease;
            z-index: -1;
        }

        .btn-primary-custom:hover::before {
            left: 0;
        }

        .btn-primary-custom:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
        }

        .btn-secondary-custom {
            background: var(--gradient-accent);
            border: none;
            color: white;
            padding: 1rem 2rem;
            border-radius: 12px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(255, 101, 132, 0.3);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn-secondary-custom::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #FF8E53 0%, #FF4B2B 100%);
            transition: all 0.4s ease;
            z-index: -1;
        }

        .btn-secondary-custom:hover::before {
            left: 0;
        }

        .btn-secondary-custom:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(255, 101, 132, 0.4);
        }

        .form-control {
            border-radius: 12px;
            padding: 1rem 1.5rem;
            border: 2px solid #e9ecef;
            transition: all 0.3s ease;
            font-size: 1rem;
            background: #f8f9fa;
        }

        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
            background: white;
        }

        .input-group-text {
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-right: none;
            border-radius: 12px 0 0 12px;
            padding: 1rem 1.2rem;
            color: var(--primary);
        }

        /* Results Section */
        .results-section {
            margin-top: 3rem;
        }

        .results-card {
            background: var(--white);
            border-radius: 20px;
            padding: 2.5rem;
            box-shadow: var(--card-shadow);
            position: relative;
            overflow: hidden;
            border-top: 5px solid var(--primary);
        }

        .results-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48cGF0dGVybiBpZD0icGF0dGVybiIgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiBwYXR0ZXJuVW5pdHM9InVzZXJTcGFjZU9uVXNlIiBwYXR0ZXJuVHJhbnNmb3JtPSJyb3RhdGUoNDUpIj48cmVjdCB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjZmZmZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDMiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+');
            opacity: 0.5;
            z-index: -1;
        }

        .table-responsive {
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .table th {
            background: var(--gradient);
            color: white;
            font-weight: 600;
            padding: 1.2rem;
            border: none;
            font-size: 0.95rem;
        }

        .table td {
            padding: 1.2rem;
            vertical-align: middle;
            border-bottom: 1px solid #e9ecef;
            font-size: 0.9rem;
        }

        .table tbody tr:hover {
            background-color: rgba(108, 99, 255, 0.05);
            transform: scale(1.01);
            transition: all 0.2s ease;
        }

        .badge {
            font-size: 0.85em;
            padding: 0.5em 0.75em;
            border-radius: 8px;
            font-weight: 600;
        }

        .badge-delivery {
            background: #28a745;
        }

        .badge-non-delivery {
            background: #ffc107;
            color: #212529;
        }

        .badge-pincode {
            background: var(--primary);
        }

        /* Alert Styling */
        .alert-custom {
            border-radius: 15px;
            border: none;
            padding: 1.5rem;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border-left: 5px solid;
        }

        .alert-info-custom {
            background: rgba(54, 209, 220, 0.1);
            color: var(--dark-text);
            border-left-color: var(--secondary);
        }

        .alert-warning-custom {
            background: rgba(255, 101, 132, 0.1);
            color: var(--dark-text);
            border-left-color: var(--accent);
        }

        /* Floating Shapes */
        .floating-shape {
            position: absolute;
            border-radius: 50%;
            opacity: 0.1;
            z-index: 0;
        }

        .shape-1 {
            width: 300px;
            height: 300px;
            background: var(--primary);
            top: -150px;
            right: -150px;
        }

        .shape-2 {
            width: 200px;
            height: 200px;
            background: var(--secondary);
            bottom: -100px;
            left: -100px;
        }

        .shape-3 {
            width: 150px;
            height: 150px;
            background: var(--accent);
            top: 50%;
            right: 10%;
        }

        /* Animation classes */
        .animate-fade-in {
            animation: fadeIn 0.8s ease forwards;
        }

        .animate-slide-up {
            animation: slideUp 0.8s ease forwards;
        }

        .animate-pulse-slow {
            animation: pulse 3s infinite ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

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

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        /* Feature Cards */
        .feature-card {
            padding: 2.5rem 1.5rem;
            text-align: center;
            border-radius: 20px;
            transition: all 0.4s ease;
            height: 100%;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--gradient);
            opacity: 0;
            transition: all 0.4s ease;
            z-index: -1;
        }

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

        .feature-card:hover {
            color: white;
            transform: translateY(-10px);
        }

        .feature-card:hover .feature-icon {
            color: white;
            background: rgba(255, 255, 255, 0.2);
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            background: rgba(108, 99, 255, 0.1);
            border-radius: 20px;
            color: var(--primary);
            font-size: 2rem;
            transition: all 0.4s ease;
        }

     
        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-subtitle {
                font-size: 1.1rem;
            }
            
            .search-card {
                padding: 2rem;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .hero-illustration {
                height: 200px;
                margin-top: 2rem;
            }
        }

/* Common layout compatibility */
.pincode-finder-page {
    overflow-x: hidden;
}
