* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
            color: #333;
            line-height: 1.6;
        }
/* Avatars */
.bot-avatar::before,
.user-avatar::before {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  background-size: cover;
}

.bot-avatar::before {
  background-image: url('https://cdn-icons-png.flaticon.com/512/4712/4712103.png'); /* Bot avatar */
}

.user-avatar::before {
  background-image: url('https://cdn-icons-png.flaticon.com/512/847/847969.png'); /* User avatar */
}

.chat-messages {
  flex: 1;
  padding: 10px 15px;
  background-color: #f4f7fa;
  overflow-y: auto;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 15px;
  line-height: 1.4;
  position: relative;
  clear: both;
}

.chat-bubble.user {
  background-color: #e6f0ff;
  color: #003366;
  float: right;
  border-bottom-right-radius: 0;
}

.chat-bubble.bot {
  background-color: #fff;
  color: #004080;
  float: left;
  border-bottom-left-radius: 0;
}

.typing-indicator {
  display: none;
  color: #888;
  font-style: italic;
  margin: 5px 15px;
  animation: fadeIn 0.3s ease-in-out;
}

.typing-indicator .dots::after {
  content: '';
  display: inline-block;
  animation: dots 1.2s infinite;
}

@keyframes dots {
  0% { content: ''; }
  33% { content: '.'; }
  66% { content: '..'; }
  100% { content: '...'; }
}




        .container {
            width: 90%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            background: linear-gradient(to right, #1e3c72, #2a5298);
            color: white;
            padding: 30px 0;
            text-align: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

        header::before {
            content: "";
            position: relative;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,0 100,0 100,100" fill="rgba(255,255,255,0.1)"/></svg>');
            background-size: 100% 100%;
        }

        header h1 {
            font-size: 2.8rem;
            margin-bottom: 10px;
            position: relative;
            z-index: 1;
        }

        header h1 i {
            margin-right: 15px;
            color: #ffd43b;
        }

        header p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto;
            opacity: 0.9;
            position: relative;
            z-index: 1;
        }

        nav {
            background: linear-gradient(to right, #2a5298, #1e3c72);
            padding: 15px 0;
            margin-top: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        nav ul {
            list-style: none;
            display: flex;
            justify-content: center;
            gap: 30px;
        }

        nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: color 0.3s ease;
        }

        nav ul li a:hover {
            color: #ffd43b;
        }

        nav ul li a.active {
            color: #ffd43b;
            border-bottom: 2px solid #ffd43b;
            padding-bottom: 5px;
        }


        .calculator-toggle {
            display: flex;
            justify-content: center;
            margin: 25px 0;
            background: white;
            border-radius: 50px;
            padding: 5px;
            max-width: auto;
            margin: 25px auto;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            flex-wrap: wrap;
        }

        .toggle-option {
            padding: 15px 30px;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 1.1rem;
            text-align: center;
            flex: 1;
            min-width: 120px;
        }

        .toggle-option.active {
            background: linear-gradient(to right, #1e3c72, #2a5298);
            color: white;
            box-shadow: 0 4px 8px rgba(30, 60, 114, 0.3);
        }

        @media (max-width: 600px) {
            .calculator-toggle {
                flex-direction: column;
                border-radius: 20px;
                padding: 8px 0;
            }
            .toggle-option {
                border-radius: 20px;
                margin: 5px 0;
                font-size: 1rem;
                padding: 14px 10px;
                min-width: unset;
            }
        }

        .calculator-section {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .calculator-section.active {
            display: block;
        }

        .calculator-container {
            background: white;
            border-radius: 15px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
            overflow: hidden;
            margin-bottom: 30px;
        }

        .input-section, .result-section {
            padding: 30px;
        }

        .input-section {
            background: #f9fafc;
            border-bottom: 1px solid #eaeef5;
        }

        .result-section {
            background: white;
        }

        .form-group {
            margin-bottom: 25px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2c3e50;
            font-size: 1.05rem;
        }

        .input-with-icon {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-with-icon i {
            position: absolute;
            left: 15px;
            color: #7f8c8d;
            font-size: 1.1rem;
        }

        input[type="text"],
        input[type="number"],
        select {
            width: 100%;
            padding: 14px 20px 14px 45px;
            border: 1px solid #dce1e8;
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.3s;
            background: white;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
        }

        input[type="text"]:focus,
        input[type="number"]:focus,
        select:focus {
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
            outline: none;
        }

        .toggle-container {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background: linear-gradient(to right, #1e3c72, #2a5298);
        }

        input:checked + .slider:before {
            transform: translateX(26px);
        }

        small {
            display: block;
            margin-top: 6px;
            color: #7f8c8d;
            font-size: 0.9rem;
        }

        .error-text {
            color: #e74c3c;
            font-weight: 500;
            margin-top: 5px;
        }

        .button-group {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        button {
            padding: 14px 25px;
            border: none;
            border-radius: 10px;
            font-size: 1.05rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        button i {
            font-size: 1.1rem;
        }

        .btn-calculate {
            background: linear-gradient(to right, #27ae60, #2ecc71);
            color: white;
            flex: 2;
        }

        .btn-calculate:hover {
            background: linear-gradient(to right, #219653, #27ae60);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
        }

        .btn-reset {
            background: linear-gradient(to right, #e67e22, #f39c12);
            color: white;
            flex: 1;
        }

        .btn-reset:hover {
            background: linear-gradient(to right, #d35400, #e67e22);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(231, 126, 34, 0.3);
        }

        .result-card {
            background: #f8f9fc;
            border-radius: 12px;
            padding: 25px;
            box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
            border: 1px solid #eaeef5;
        }

        .result-item {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid #eaeef5;
            font-size: 1.1rem;
        }

        .result-item:last-child {
            border-bottom: none;
        }

        .result-item span:first-child {
            font-weight: 500;
            color: #2c3e50;
        }

        .result-item span:last-child {
            font-weight: 600;
            color: #2c3e50;
        }

        .highlight {
            background: linear-gradient(to right, rgba(30, 60, 114, 0.1), rgba(42, 82, 152, 0.1));
            padding: 15px 20px;
            margin: 0 -20px;
            border-radius: 8px;
            font-size: 1.2rem;
            font-weight: 700;
            color: #1e3c72 !important;
        }

        .divider {
            height: 1px;
            background: linear-gradient(to right, transparent, #3498db, transparent);
            margin: 20px 0;
        }

        .tax-breakdown {
            margin-top: 25px;
            background: white;
            padding: 20px;
            border-radius: 10px;
            border: 1px solid #eaeef5;
        }

        .tax-breakdown h3 {
            margin-bottom: 15px;
            color: #1e3c72;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .breakdown-item {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px dashed #eaeef5;
        }

        .breakdown-item:last-child {
            border-bottom: none;
        }

        .tax-savings {
            background: linear-gradient(to right, rgba(189, 195, 199, 0.1), rgba(236, 240, 241, 0.1));
            padding: 20px;
            border-radius: 10px;
            margin-top: 25px;
            border: 1px solid #eaeef5;
        }

        .tax-savings h3 {
            margin-bottom: 10px;
            color: #27ae60;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .tax-savings p {
            color: #34495e;
            line-height: 1.7;
        }

        .btn-print {
            background: linear-gradient(to right, #3498db, #2980b9);
            color: white;
            width: 100%;
            margin-top: 25px;
        }

        .btn-print:hover {
            background: linear-gradient(to right, #2980b9, #2573a7);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
        }

        .tax-info {
            background: linear-gradient(to right, #f1f2f6, #dfe4ea);
            padding: 25px;
            border-radius: 15px;
            margin: 30px 0;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .tax-info h3 {
            margin-bottom: 15px;
            color: #1e3c72;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .tax-info ul {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 12px;
            list-style: none;
        }

        .tax-info li {
            padding: 10px 15px;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 8px;
            font-weight: 500;
            position: relative;
            padding-left: 35px;
        }

        .tax-info li::before {
            content: "•";
            color: #3498db;
            font-size: 1.5rem;
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
        }

        .additional-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin: 30px 0;
        }

        .feature-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border-top: 4px solid #3498db;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .feature-card h3 {
            margin-bottom: 15px;
            color: #1e3c72;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .feature-card p {
            color: #34495e;
            line-height: 1.7;
        }

        footer {
            background: linear-gradient(to right, #1e3c72, #2a5298);
            color: white;
            text-align: center;
            padding: 30px 0;
            margin-top: 50px;
        }

        footer p {
            margin: 5px 0;
            opacity: 0.8;
        }

        footer p:first-child {
            font-weight: 500;
            font-size: 1.1rem;
            opacity: 1;
        }

        /* PTA Tax Specific Styles */
        .radio-group {
            display: flex;
            gap: 25px;
            margin-top: 10px;
        }

        .radio-group label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
            cursor: pointer;
        }

        .radio-group input[type="radio"] {
            width: 18px;
            height: 18px;
            accent-color: #1e3c72;
        }

        .phone-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .phone-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            border: 2px solid transparent;
             
        }

        .phone-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .phone-card.selected {
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
        }

        .phone-img {
            height: 150px;
            background: linear-gradient(135deg, #f1f2f6, #dfe4ea);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .phone-img img {
            max-width: 100%;
            max-height: 100%;
        }

        .phone-details {
            padding: 15px;
        }

        .phone-details h4 {
            font-size: 1.1rem;
            margin-bottom: 5px;
            color: #2c3e50;
        }

        .phone-details .brand {
            color: #7f8c8d;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .phone-details .price {
            font-weight: 700;
            color: #27ae60;
            font-size: 1.1rem;
        }

        .pta-result-card {
            background: linear-gradient(135deg, #f8f9fc, #eef2f7);
            border-radius: 15px;
            padding: 30px;
            margin-top: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border: 1px solid #eaeef5;
        }

        .pta-result-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eaeef5;
        }

        .pta-result-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .pta-result-value {
            font-weight: 700;
            color: #1e3c72;
            font-size: 1.2rem;
        }

        .cnic-passport {
            display: flex;
            gap: 20px;
            margin-top: 20px;
        }

        .id-card {
            flex: 1;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            border: 2px solid transparent;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .id-card.selected {
            border-color: #3498db;
        }

        .id-header {
            background: linear-gradient(to right, #1e3c72, #2a5298);
            color: white;
            padding: 15px;
            text-align: center;
            font-weight: 600;
        }

        .id-body {
            padding: 20px;
            text-align: center;
        }

        .id-body i {
            font-size: 3rem;
            color: #7f8c8d;
            margin-bottom: 15px;
        }

        .id-body p {
            font-size: 0.9rem;
            color: #7f8c8d;
        }

        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .fade-in {
            animation: fadeIn 0.5s ease forwards;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .calculator-container {
                flex-direction: column;
            }
            
            .input-section, .result-section {
                width: 100%;
            }
            
            header h1 {
                font-size: 2.2rem;
            }

            nav ul {
                flex-direction: column;
                gap: 15px;
            }
        }

        @media (max-width: 768px) {
            .button-group {
                flex-direction: column;
            }
            
            .toggle-container {
                flex-wrap: wrap;
            }
            
            .phone-grid {
                grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            }
            
            .cnic-passport {
                flex-direction: column;
            }
        }
          .content-section {
            background: white;
            border-radius: 15px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
            padding: 30px;
            margin: 30px 0;
        }

        .content-section h2 {
            color: #1e3c72;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
/* Table Styling */
.custom-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.custom-table th {
    background-color: #343a40;
    color: white;
    text-align: center;
    vertical-align: middle;
}

.custom-table td {
    text-align: center;
    vertical-align: middle;
    padding: 12px;
}

.custom-table img {
    border-radius: 5px;
}

        .content-section p {
            color: #34495e;
            line-height: 1.7;
            margin-bottom: 15px;
        }
             .tax-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

        .tax-table th, .tax-table td {
            padding: 15px;
            border: 1px solid #eaeef5;
            text-align: left;
        }

        .tax-table th {
            background: linear-gradient(to right, #1e3c72, #2a5298);
            color: white;
            font-weight: 600;
        }

        .tax-table td {
            background: #f8f9fc;
        }

        .tax-table tr:nth-child(even) td {
            background: #f1f2f6;
        }
  @media (max-width: 992px) {
            header h1 {
                font-size: 2.2rem;
            }

            nav ul {
                flex-direction: column;
                gap: 15px;
            }

            .tax-table {
                font-size: 0.9rem;
            }
        }

        @media (max-width: 768px) {
            .tax-table th, .tax-table td {
                padding: 10px;
            }
        }
         .blog-post {
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eaeef5;
        }

        .blog-post:last-child {
            border-bottom: none;
        }

        .blog-post h3 {
            color: #2c3e50;
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .blog-post .meta {
            color: #7f8c8d;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .blog-post p {
            color: #34495e;
            line-height: 1.7;
        }
 .contact-form {
            max-width: 600px;
            margin: 0 auto;
        }

        .form-group {
            margin-bottom: 25px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #2c3e50;
            font-size: 1.05rem;
        }

        .input-with-icon {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-with-icon i {
            position: absolute;
            left: 15px;
            color: #7f8c8d;
            font-size: 1.1rem;
        }

        input[type="text"],
        input[type="email"],
        textarea {
            width: 100%;
            padding: 14px 20px 14px 45px;
            border: 1px solid #dce1e8;
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.3s;
            background: white;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
        }

        textarea {
            padding: 14px 20px;
            height: 150px;
            resize: vertical;
        }

        input[type="text"]:focus,
        input[type="email"]:focus,
        textarea:focus {
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
            outline: none;
        }

        button {
            padding: 14px 25px;
            border: none;
            border-radius: 10px;
            font-size: 1.05rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            background: linear-gradient(to right, #27ae60, #2ecc71);
            color: white;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        button:hover {
            background: linear-gradient(to right, #219653, #27ae60);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
        }

        .contact-info {
            margin-top: 30px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
        }

        .contact-item {
            background: #f8f9fc;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            border: 1px solid #eaeef5;
        }

        .contact-item i {
            font-size: 2rem;
            color: #3498db;
            margin-bottom: 10px;
        }

        .contact-item p {
            color: #34495e;
            margin: 5px 0;
        }
  @media (max-width: 768px) {
            .contact-form {
                padding: 0;
            }
        }