/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
}

.modal-content {
    background: white;
    padding: 20px;
    max-width: 400px;
    margin: 15% auto;
    text-align: center;
    border: 2px solid red;
    border-radius: 10px;
}

.close-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


.container {
    max-width: 480px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    padding: 10px 15px;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.menu-button {
    font-size: 24px;
    cursor: pointer;
    position: relative;
    width: 40px;
    display: flex;
    align-items: center;
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    width: 200px;
    z-index: 1000;
    overflow: hidden;
    padding: 5px 0;
}

.menu-dropdown a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}

.menu-dropdown a:last-child {
    border-bottom: none;
}

.menu-dropdown a:hover {
    background-color: #f9f9f9;
    color: #FF9933;
    padding-left: 20px;
}

.menu-dropdown a i {
    margin-right: 10px;
    color: #FF9933;
}

.show-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.party-logo {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 10px;
}

.bjp-logo {
    height: 34px;
    width: auto;
}

.party-name {
    color: #FF9933;
    font-weight: bold;
    margin-left: 10px;
    font-size: 16px;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 140px;
}

.language-selector {
    margin-right: 10px;
}

.language-selector select {
    padding: 5px 25px 5px 10px;
    border: 1px solid #ccc;
    border-radius: 25px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' width='18px' height='18px'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 5px center;
}

.profile-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ddd;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Banner Styles */
.banner {
    text-align: center;
    position: relative;
    background: none;
    padding: 0;
}

.centered-banner-image {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.full-banner-image {
    max-width: 100%;
    height: auto;
    border: none;
    box-shadow: none;
}

.flag-strip {
    display: flex;
    height: 8px;
    width: 100%;
    margin-top: 10px;
}

.saffron {
    background-color: #FF9933;
    flex: 1;
}

.white {
    background-color: white;
    flex: 1;
}

.green {
    background-color: #138808;
    flex: 1;
}

.website-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
}

.globe-icon {
    margin-right: 5px;
}

.register-text {
    color: #FF0000;
    background-color: yellow;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 12px;
}

/* Timer Styles */
.expiry-timer {
    text-align: center;
    margin: 8px auto;
    font-size: 14px;
    color: #505050;
    font-weight: 500;
    max-width: 380px;
    background-color: #fff8f0;
    padding: 6px 12px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(255, 153, 51, 0.15);
    border: 1px solid rgba(255, 153, 51, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 2px 8px rgba(255, 153, 51, 0.15); }
    50% { box-shadow: 0 2px 12px rgba(255, 153, 51, 0.3); }
    100% { box-shadow: 0 2px 8px rgba(255, 153, 51, 0.15); }
}

.timer-icon {
    color: #FF9933;
}

#countdown {
    font-weight: bold;
    color: #e84118;
    background: -webkit-linear-gradient(#FF9933, #e84118);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Section Styles - Premium Version */
.form-section {
    padding: 10px;
    background-color: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(128, 0, 128, 0.1);
    background: linear-gradient(to bottom, #ffffff 0%, #f9f5ff 100%);
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #FF9933, #FFFFFF, #138808);
}

.form-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.form-icon {
    font-size: 24px;
    background-color: #f8f0ff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-title {
    color: #800080;
    font-size: 22px;
    margin: 0;
    font-weight: 600;
    background: linear-gradient(45deg, #800080, #FF9933);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 15px;
}

.premium-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    position: relative;
    padding-left: 13px;
}

.premium-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background-color: #FF9933;
    border-radius: 4px;
}

/* Compact Network Selection with Cell Design */
.compact-network-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 6px;
    gap: 6px;
}

.compact-network-option {
    position: relative;
    flex: 1;
    text-align: center;
}

.compact-network-option input[type="radio"] {
    display: none;
}

.compact-network-label {
    display: block;
    cursor: pointer;
    padding: 8px 5px;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
    border: 2px solid #e0e0e0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.compact-network-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

.compact-network-logo {
    height: 35px;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.2s ease;
    filter: grayscale(80%) opacity(0.8);
}

.compact-network-option input[type="radio"]:checked + .compact-network-label {
    background-color: #fff;
    border-color: #800080;
    box-shadow: 0 3px 10px rgba(128, 0, 128, 0.15);
    transform: translateY(-2px);
    position: relative;
}

.compact-network-option input[type="radio"]:checked + .compact-network-label::after {
    content: '✓';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: #4CAF50;
    color: white;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.compact-network-option input[type="radio"]:checked + .compact-network-label .compact-network-logo {
    filter: none;
    transform: scale(1.05);
}

.compact-network-label:hover {
    border-color: #d0d0d0;
    background-color: #fafafa;
}

.compact-network-label:hover .compact-network-logo {
    filter: grayscale(30%) opacity(0.9);
}

/* Premium Mobile Input */
.premium-input-container {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 5px;
    transition: all 0.3s ease;
}

.premium-input-container:focus-within {
    border-color: #800080;
    box-shadow: 0 0 0 2px rgba(128, 0, 128, 0.2);
}

.premium-input-icon {
    font-size: 20px;
    padding: 0 15px;
}

.premium-input {
    flex: 1;
    padding: 12px 10px;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
}

.error-message {
    color: #d9534f;
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Multi-step Form Styles */
.form-step {
    display: none;
}

.active-step {
    display: block;
}

/* Step 2: Progress Bar Styles */
.search-container {
    text-align: center;
    padding: 30px 20px;
}

.search-title {
    font-size: 24px;
    color: #800080;
    margin-bottom: 30px;
}

.progress-container {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(45deg, #800080, #FF9933);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.search-status {
    color: #666;
    font-size: 16px;
}

/* Step 3: Success Styles */
.success-container {
    text-align: center;
    padding: 15px 20px;
}

.success-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.success-title {
    font-size: 24px;
    color: #800080;
    margin-bottom: 10px;
}

.success-message {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

#plan-details, #selected-plan {
    font-weight: bold;
    color: #800080;
    display: inline-block;
    vertical-align: middle;
}

.five-g-logo {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    width: 60px;
    height: auto;
    border-radius: 3px;
}

.activate-btn {
    background: linear-gradient(45deg, #FF9933, #FF7E00);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 126, 0, 0.3);
    transition: all 0.3s ease;
    margin-top: 5px;
}

.activate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 126, 0, 0.4);
}

/* Congratulations Animation */
.congrats-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.congrats-animation.active {
    opacity: 1;
    pointer-events: auto;
}

.confetti {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confettiFall 3s linear infinite;
}

.confetti.small {
    width: 6px;
    height: 6px;
    animation-duration: 2.5s;
}

.confetti.rect {
    width: 12px;
    height: 6px;
    border-radius: 0;
    animation: confettiFallRect 4s linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes confettiFallRect {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(90deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(180deg);
        opacity: 0;
    }
}

/* Premium Submit Button */
.premium-submit-btn {
    width: 100%;
    padding: 14px;
    background: #e84118; /* Dark Orange */
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 65, 24, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 65, 24, 0.5);
    background: #ff3d00;
}

.btn-text {
    margin-right: 10px;
}

/* Live Recharge Notifications */
/* Social container (Recharges and Comments) */
.social-container {
    margin: 15px auto;
    width: 450px;
    max-width: 450px;
    min-width: 450px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.social-tabs {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.tab-button {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tab-button.active {
    background-color: #fff;
    color: #e84118;
    border-bottom: 2px solid #e84118;
}

.tab-content {
    position: relative;
    min-height: 200px; /* Ensure consistent minimum height */
}

.tab-pane {
    display: none;
    padding: 10px;
    min-height: 180px; /* Match the content area minimum height */
}

.tab-pane.active {
    display: block;
}

.live-recharges {
    padding: 5px 0;
}

/* Comments section styling */
.comments-section {
    padding: 5px 0;
}

.comment {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.comment-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.comment-time {
    font-size: 12px;
    color: #888;
}

.comment-text {
    font-size: 13px;
    line-height: 1.4;
    color: #444;
}

.live-recharges-title {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
    text-align: center;
}

.live-recharge-notification {
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: #e8f5e9;
    border-radius: 5px;
    font-size: 13px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

.live-recharge-notification:last-child {
    margin-bottom: 0;
}

.notification-icon {
    width: 24px;
    height: 24px;
    background-color: #4CAF50;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 12px;
}

.notification-text {
    flex: 1;
}

/* Removed time display as requested */

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

.btn-icon {
    font-size: 20px;
}

.submit-btn:hover {
    background-color: #6a006a;
}

/* Footer Styles */
.footer {
    background-color: #f9f9f9;
    color: #333;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px 20px;
}

.footer-section {
    flex: 1;
    margin: 0 15px 20px;
    min-width: 200px;
}

.footer-section h3 {
    color: #FF7E00;
    margin-bottom: 15px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #FF7E00;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FF7E00;
}

.social-icons {
    display: flex;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 50%;
    margin-right: 10px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #FF7E00;
    color: white;
}

.footer-bottom {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    position: relative;
}

.footer-flag {
    height: 5px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.footer-bottom p {
    margin: 10px 0 0;
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .party-name {
        font-size: 14px;
    }
    
    .header-container {
        position: relative;
    }
    
    .menu-button {
        width: 30px;
    }
    
    .bjp-logo {
        height: 30px;
    }
    
    .banner-text {
        font-size: 20px;
    }
    
    .hindi-text {
        font-size: 16px;
    }
    
    .premium-network-options {
        gap: 10px;
    }
    
    .premium-network-option {
        min-width: calc(50% - 10px);
    }
    
    .form-section {
        padding: 10px;
    }
    
    .form-card {
        padding: 15px 12px;
    }
    
    .form-icon {
        width: 45px;
        height: 45px;
        font-size: 24px;
        margin-right: 10px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .premium-label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .compact-network-logo {
        height: 30px;
    }
    
    .compact-network-label {
        padding: 6px 3px;
    }
    
    .premium-input {
        padding: 10px 8px;
    }
    
    .premium-submit-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        padding: 0 15px 15px;
    }
    
    .footer-section {
        margin-bottom: 20px;
    }
    
    .footer-section h3 {
        font-size: 16px;
    }
    
    .premium-input-container {
        flex-direction: row;
    }
    
    /* Fix social container on mobile */
    .social-container {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        min-width: calc(100% - 30px);
        margin: 15px;
    }
    
    .premium-input-icon {
        padding: 0 10px;
    }
}
