@font-face {
    font-family: 'TIM Sans';
    src: url('../assets/fonts/TIM Sans.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --white: #FFFFFF;
    --light-blue: #122AC2;
    --dark-blue: #081677;
    --font-family: 'TIM Sans', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
}

/* Header Top */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--dark-blue);
    min-height: 3.125rem;
    color: var(--white);
    position: relative;
    padding: 0 1rem;
    font-weight: 700;
}

.header-top__left,
.header-top__right {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, .75);
    flex: 0 0 auto;
    z-index: 1;
}

.header-top__center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, .75);
    white-space: nowrap;
}

/* Rainbow Line */
.header-rainbow-line {
    height: 0.313rem;
    min-height: 0.313rem;
    background-image: linear-gradient(90deg,
        #e8619d 0 12%,
        #f50000 12.5% 25%,
        #ff8500 25% 37.5%,
        #eee300 37.5% 50%,
        #00952f 50% 62.5%,
        #00b4b7 62.5% 75%,
        #786bab 75% 87.5%,
        #8a1f80 87.5% 100%);
}

/* Main Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    min-height: 4.063rem;
    background-color: var(--light-blue);
}

.header-left {
    flex: 0 0 auto;
}

.header-logo img {
    height: 2.5rem;
    width: auto;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu__items {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    gap: 1rem;
    list-style: none;
}

.nav-menu__item {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-icon {
    max-width: 1.5rem;
    height: auto;
}

.email-icon {
    max-width: 2rem;
    height: auto;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--dark-blue);
    min-height: 12.75rem;
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.125rem;
    font-weight: 400;
}

/* Form Container */
.recharge-container {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.form-section {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Phone Input */
.phone-input-container {
    margin-bottom: 1rem;
}

.phone-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
}

.phone-input:focus {
    outline: none;
    border-color: var(--light-blue);
}

.phone-input::placeholder {
    color: #6c757d;
}

.enterprise-link {
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Amount Grid */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
    justify-items: center;
}

.amount-btn {
    width: 80px;
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    border-color: var(--light-blue);
    background-color: #f8f9ff;
}

.amount-btn.selected {
    background-color: var(--light-blue);
    color: white;
    border-color: var(--light-blue);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.payment-option:hover {
    border-color: var(--light-blue);
    background-color: #f8f9ff;
}

.payment-option input[type="radio"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    accent-color: var(--light-blue);
}

.payment-option input[type="radio"]:checked + .payment-label {
    color: var(--light-blue);
    font-weight: 500;
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: var(--light-blue);
    background-color: #f8f9ff;
}

.payment-label {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

/* PayPal Warning */
.paypal-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    color: #856404;
    font-size: 0.875rem;
    text-align: center;
    display: none;
    animation: slideDown 0.3s ease;
}

.paypal-warning.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Terms Section */
.terms-section {
    padding: 1.25rem 2.5rem;
    background-color: #f8f9fa;
}

.terms-text {
    font-size: 0.813rem;
    color: #6c757d;
    text-align: center;
    line-height: 1.5;
}

/* Submit Section */
.submit-section {
    padding: 2rem 2.5rem;
    text-align: center;
}

.submit-btn {
    background: var(--light-blue);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-width: 250px;
}

.submit-btn:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(18, 42, 194, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */

/* Large Tablets and Small Laptops (768px - 1024px) */
@media (max-width: 1024px) {

    .header-top {
        padding: 0 1rem;
    }

    .header-top__center {
        gap: 0.75rem;
    }

    .nav-menu__items {
        gap: 0.75rem;
        font-size: 0.85rem;
    }

    .hero__title {
        font-size: 3rem;
    }


}

/* Tablets (768px) */
@media (max-width: 768px) {
    .header-top {
        padding: 0 0.75rem;
    }

    .header-top__center {
        display: none; /* Hide center menu on mobile */
    }

    .header {
        padding: 0 0.75rem;
    }

    .nav-menu__items {
        gap: 0.5rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
    }

    .nav-menu__item {
        font-size: 0.75rem;
    }

    .hero {
        min-height: 10rem;
        padding: 1.5rem 1rem;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }



    .form-section {
        padding: 1.5rem 1.5rem;
    }

    .amount-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .amount-btn {
        width: 70px;
        height: 45px;
        font-size: 0.9rem;
    }

    .payment-methods {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .payment-option {
        min-width: 200px;
        max-width: 250px;
    }

    .terms-section {
        padding: 1rem 1.5rem;
    }

    .submit-section {
        padding: 1.5rem 1.5rem;
    }

    .submit-btn {
        width: 100%;
        min-width: auto;
        padding: 1rem 1.5rem;
    }
}

/* Mobile Devices (480px) */
@media (max-width: 480px) {
    .header-top {
        padding: 0 0.5rem;
        min-height: 2.5rem;
    }

    .header-top__left {
        font-size: 0.75rem;
    }

    .header {
        padding: 0 0.5rem;
        min-height: 3.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-logo img {
        margin-top: 1rem;
    }

    .header-right {
        width: 100%;
        justify-content: center;
    }

    .nav-menu__items {
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 0.25rem;
        font-size: 0.7rem;
    }

    .nav-menu__item {
        padding: 0.25rem;
    }

    .hero {
        min-height: 8rem;
        padding: 1rem 0.5rem;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }

    .recharge-container {
        margin: 0.5rem;
        border-radius: 6px;
    }

    .form-section {
        padding: 1rem 1rem;
    }

    .section-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .phone-input {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }

    .amount-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .amount-btn {
        width: 60px;
        height: 40px;
        font-size: 0.8rem;
    }

    .payment-methods {
        gap: 0.5rem;
    }

    .payment-option {

        padding: 0.625rem 1rem;
    }

    .payment-label {
        font-size: 0.875rem;
    }

    .terms-section {
        padding: 0.75rem 1rem;
    }

    .terms-text {
        font-size: 0.75rem;
    }

    .submit-section {
        padding: 1rem;
    }

    .submit-btn {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

/* Very Small Mobile Devices (320px) */
@media (max-width: 320px) {
    .header-top {
        padding: 0 0.25rem;
    }

    .header {
        padding: 0 0.25rem;
    }

    .header-logo img {
        margin-top: 1rem;
    }

    .nav-menu__items {
        font-size: 0.6rem;
        gap: 0.125rem;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__subtitle {
        font-size: 0.8rem;
    }

    .recharge-container {
        margin: 0.25rem;
    }

    .form-section {
        padding: 0.75rem 0.75rem;
    }

    .amount-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .amount-btn {
        width: 50px;
        height: 35px;
        font-size: 0.7rem;
    }

    .payment-option {
        min-width: 120px;
        padding: 0.5rem 0.75rem;
    }

    .payment-label {
        font-size: 0.8rem;
    }
}

/* Large Screens (1200px+) */
@media (min-width: 1200px) {
    .header-top {
        padding: 0 4rem;
    }

    .header {
        padding: 0 2rem;
    }

    .nav-menu__items {
        gap: 1.5rem;
        font-size: 1rem;
    }

    .hero__title {
        font-size: 4rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    .recharge-container {
        max-width: 700px;
        margin: 3rem auto;
    }

    .form-section {
        padding: 2.5rem 3rem;
    }

    .amount-btn {
        width: 90px;
        height: 55px;
        font-size: 1.1rem;
    }

    .payment-methods {
        gap: 1.5rem;
    }

    .payment-option {
        min-width: 200px;
        padding: 1rem 2rem;
    }
}

/* Print Styles */
@media print {
    .header-top,
    .header-rainbow-line,
    .header {
        display: none;
    }

    .hero {
        background: white;
        color: black;
        min-height: auto;
        padding: 1rem;
    }

    .recharge-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .submit-btn {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .amount-btn {
        border-width: 3px;
    }

    .payment-option {
        border-width: 3px;
    }

    .phone-input {
        border-width: 3px;
    }
}

.tim-footer {
    background-color: #ffffff;
    font-size: 14px;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    padding: 0 40px 30px 40px;
    gap: 60px;
}

.footer-left {
    flex: 1;
}

.footer-right {
    min-width: 250px;
}

.tim-logo {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.logo-bars {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: 8px;
}

.bar {
    width: 4px;
    height: 6px;
}

.bar.red {
    background-color: #e60000;
}

.bar.blue {
    background-color: #0066cc;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    min-height: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
}

.footer-column a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.social-section h4 {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.social-link:hover {
    color: #0066cc;
}

.social-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.social-icon.facebook {
    background-color: #1877f2;
    color: white;
    border-radius: 3px;
}

.social-icon.twitter {
    background-color: #000;
    color: white;
    border-radius: 3px;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-radius: 3px;
}

.social-icon.youtube {
    background-color: #ff0000;
    color: white;
    border-radius: 3px;
}

.social-icon.linkedin {
    background-color: #0077b5;
    color: white;
    border-radius: 3px;
}

.compliance-badge {
    margin-top: 20px;
}

.badge {
    background-color: #e60000;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

.badge-line {
    display: block;
}

.footer-bottom {
    background-color: #0066cc;
    color: #000;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: white;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: white;
    font-size: 12px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        padding: 0 20px 30px 20px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 20px;
    }

    .footer-bottom-links {
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}
