/* CSS Reset and Basic Styles */
:root {
    --primary-red: #E50914;
    --dark-gray: #141414;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --star-color: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


/* Global font settings */
body {
  font-family: "Poppins", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--text-color);
  background-color: var(--white);
  line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-weight: 600;
}

/* Header Navigation */
.main-header {
    padding: 20px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo img {
  /* Set a maximum width to prevent it from becoming too large */
  max-width: 250px; /* Adjust this value as needed */

  /* The height will automatically adjust to maintain the aspect ratio */
  height: auto;

  /* This ensures the image is responsive within its container */
  width: 100%;
}
.header-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--white);
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Style for the active currency button */
.active-currency {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
    color: #555;
}

.hero-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.hero-price span {
    font-size: 18px;
    font-weight: 400;
    color: #777;
}

.hero-save {
    color: #777;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.hero-feature-item {
    font-weight: 500;
}

.hero-feature-item svg {
    vertical-align: middle;
    margin-right: 8px;
    width: 20px;
    height: 20px;
    color: var(--primary-red);
}

/* Plans Section */
.plans-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.plan-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.plan-card .plan-features {
    flex-grow: 1;
}

.most-popular-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 8px 20px;
    font-weight: 500;
    font-size: 14px;
    border-bottom-right-radius: 10px;
}

.plan-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.plan-card .plan-subtitle {
    color: #777;
    margin-bottom: 20px;
}

.plan-price {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-gray);
}

.plan-price span {
    font-size: 16px;
    font-weight: 400;
    color: #777;
}

.plan-save-badge {
    display: inline-block;
    background-color: #e2f5ea;
    color: #34c759;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin: 10px 0 30px;
}

.plan-features {
    text-align: left;
    margin-bottom: 30px;
}

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.plan-features li svg {
    color: #34c759;
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.plan-card .btn {
    width: 100%;
}

.plan-details-link {
    display: block;
    margin-top: 20px;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    padding: 0;
}

.plan-details-link:hover {
    color: var(--primary-red);
}

.guarantee-note {
    text-align: center;
    margin-top: 40px;
    color: #777;
    font-size: 14px;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 60px;
    text-align: center;
}

.stat-item h3 {
    font-size: 32px;
    font-weight: 700;
}

.stat-item p {
    color: #777;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
}

.testimonial-stars {
    color: var(--star-color);
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--white);
}

.customer-name {
    font-weight: 600;
}

.verified-badge {
    background-color: #e2f5ea;
    color: #34c759;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 5px;
    font-weight: 500;
}

/* Footer-like Info Bar */
.info-bar {
    padding: 40px 0;
    background: var(--light-gray);
    border-top: 1px solid var(--border-color);
}

.info-bar .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.info-item {
    font-weight: 500;
}

.info-item svg {
    vertical-align: middle;
    margin-right: 8px;
    width: 24px;
    height: 24px;
    color: var(--primary-red);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; 
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.show-modal {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 30px 40px;
    border-radius: 10px;
    max-width: 550px;
    width: 90%;
    position: relative;
    animation: fadeIn 0.3s ease-out forwards;
    border: 2px solid var(--primary-red);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--dark-gray);
}

#modal-title {
    margin-bottom: 20px;
    font-size: 28px;
    color: var(--dark-gray);
}

#modal-details p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
}

#modal-details p strong {
    color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 992px) {
    .plans-grid {
        grid-template-columns: 1fr 1fr;
    }
     .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 36px;
    }
    .hero {
        padding: 60px 0;
    }
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-stats {
        flex-direction: column;
        gap: 20px;
    }
    .info-bar .container {
        flex-direction: column;
        gap: 20px;
    }
}


/*
=================================
CHECKOUT MODAL STYLES
=================================
*/

#checkout-modal .checkout-modal-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 480px;
    animation: fadeIn 0.3s ease-out forwards;
}

#checkout-modal .checkout-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

#checkout-modal .header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111;
}

#checkout-modal .header-title svg {
    width: 28px;
    height: 28px;
    color: var(--primary-red);
}

#checkout-modal #checkout-plan-name {
    font-size: 22px;
    font-weight: 600;
}

#checkout-modal .checkout-modal-body {
    padding: 15px 25px 25px 25px;
}

#checkout-modal .price-box {
    background-color: #fdf5f5;
    border: 1px solid #ffe3e3;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#checkout-modal .price-main {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

#checkout-modal .price-monthly {
    display: block;
    font-size: 14px;
    color: #666;
}

#checkout-modal .auto-upgrade-badge {
    background-color: var(--primary-red);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    display: none; /* Hidden by default */
}

#checkout-modal .option-group {
    margin-bottom: 25px;
}

#checkout-modal .option-group > label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

#checkout-modal .month-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#checkout-modal .month-selector button {
    background-color: white;
    border: 1px solid #ccc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    color: #555;
    transition: background-color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#checkout-modal .month-selector button:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

#checkout-modal #month-count-display {
    font-size: 18px;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

#checkout-modal #profile-setup-section {
    border-top: 1px solid #f0f0f0;
    padding-top: 25px;
}

#checkout-modal .profile-setup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#checkout-modal .profile-setup-header label {
    font-weight: 600;
    font-size: 16px;
}

#checkout-modal #add-profile-btn {
    background: none;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    font-weight: 500;
    font-size: 14px;
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.2s, color 0.2s;
}
#checkout-modal #add-profile-btn:hover {
    background-color: var(--primary-red);
    color: white;
}
#checkout-modal #add-profile-btn svg {
    width: 16px;
    height: 16px;
}

#checkout-modal #profiles-container .profile-entry {
    margin-bottom: 15px;
}

#checkout-modal .profile-entry label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #555;
}

#checkout-modal .profile-entry input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}
#checkout-modal .profile-entry .input-group {
    display: flex;
    gap: 15px;
}

#checkout-modal #auto-upgrade-section {
    border-top: 1px solid #f0f0f0;
    padding-top: 25px;
    display: none; /* Hidden by default */
}
#checkout-modal .upgrade-info-box {
    background-color: #fff8f8;
    border: 1px solid var(--primary-red);
    border-radius: 8px;
    padding: 15px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
}
#checkout-modal .shield-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-red);
}
#checkout-modal .upgrade-info-box h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
}
#checkout-modal .upgrade-info-box p {
    font-size: 13px;
    color: #666;
    margin: 0;
}
#checkout-modal #switch-back-btn {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 500;
    transition: border-color 0.2s, background-color 0.2s;
}
#checkout-modal #switch-back-btn:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

#checkout-modal .checkout-modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #f0f0f0;
}
#checkout-modal .btn-cancel, #checkout-modal .btn-payment {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}
#checkout-modal .btn-cancel {
    background-color: white;
    color: #333;
}
#checkout-modal .btn-cancel:hover {
    background-color: #f5f5f5;
    border-color: #999;
}
#checkout-modal .btn-payment {
    background-color: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
}
#checkout-modal .btn-payment:hover {
    opacity: 0.9;
}


/* Add position relative to the profile entry container */
#checkout-modal .profile-entry {
    position: relative;
    padding-top: 10px; /* Add some space for the remove button */
}

/* Style for the new remove button */
.remove-profile-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-profile-btn:hover {
    background-color: #fee2e2;
    color: #ef4444;
}

/* FIX FOR MODAL SCROLLING */
#checkout-modal .checkout-modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 200px); /* Adjust 200px if needed */
}

.main-footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 14px;
}