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

/* Splash Page Styles */
.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gw-gradient-start) 0%, var(--gw-gradient-end) 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-overlay.hidden {
    display: none;
}

.splash-container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.splash-content {
    background: white;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.splash-logo {
    max-height: 75px;
    margin-bottom: 30px;
}

.splash-content h1 {
    color: var(--gw-teal);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.splash-subtitle {
    color: var(--text-light);
    margin-bottom: 35px;
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 400;
}

.splash-services {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.splash-service {
    background: var(--bg-light);
    border-left: 3px solid var(--gw-orange);
    border-radius: 8px;
    padding: 20px;
}

.splash-service h3 {
    color: var(--gw-teal);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.splash-service p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.splash-divider {
    height: 2px;
    background: linear-gradient(to right, transparent 0%, var(--border-light) 20%, var(--border-light) 80%, transparent 100%);
    margin: 30px 0;
}

.splash-access-text {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.splash-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.splash-form input {
    padding: 14px 20px;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.splash-form input:focus {
    outline: none;
    border-color: var(--gw-orange);
    box-shadow: 0 0 0 3px rgba(244, 124, 60, 0.1);
}

.splash-error {
    margin-top: 20px;
    padding: 12px 20px;
    background: #fee;
    color: #c00;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Brand Colors */
:root {
    --gw-teal: #2b4f5e;
    --gw-teal-dark: #1f3a46;
    --gw-teal-light: #3d6b7d;
    --gw-orange: #f47c3c;
    --gw-orange-hover: #e56728;
    --gw-gradient-start: #2b4f5e;
    --gw-gradient-end: #4d8094;
    --text-dark: #2b2b2b;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    --bg-light: #f9fafb;
    --success-green: #10b981;
    --success-bg: #f0fdf4;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--gw-gradient-start) 0%, var(--gw-gradient-end) 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none; /* Hidden by default, shown when access granted */
}

/* Header */
.header {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    color: var(--gw-teal);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--gw-orange);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(244,124,60,0.05) 0%, transparent 70%);
    transform: rotate(30deg);
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.header .logo {
    max-height: 62px;
}

.header h1 {
    font-size: 2rem;
    margin: 15px 0 10px;
    font-weight: 600;
    color: var(--gw-teal);
}

.header p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
    color: var(--text-light);
}

/* Step Indicator */
.steps {
    display: flex;
    justify-content: center;
    padding: 25px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.step {
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: relative;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -30px;
    width: 60px;
    height: 2px;
    background: var(--border-light);
    top: 50%;
    transform: translateY(-50%);
}

.step.active {
    color: var(--gw-orange);
}

.step.completed {
    color: var(--success-green);
}

.step.completed .step-number {
    background: var(--success-green);
    color: white;
    border-color: var(--success-green);
}

.step.active .step-number {
    background: var(--gw-orange);
    color: white;
    border-color: var(--gw-orange);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-light);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.step-label {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Step Content */
.step-content {
    display: none;
    padding: 40px;
    min-height: auto;
}

.step-content.active {
    display: block;
}

/* Service Selection */
.service-selection {
    max-width: 1200px;
    margin: 0 auto;
}

.selection-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid var(--gw-orange);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 35px;
}

.info-text {
    color: var(--text-dark);
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.6;
}

.info-text strong {
    color: var(--gw-teal);
}

.service-category {
    margin-bottom: 40px;
    overflow: hidden;
}

.category-title {
    color: var(--gw-teal);
    font-size: 1.8rem;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--gw-orange);
    font-weight: 600;
}

.category-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* All Plans in One Row */
.all-plans-grid {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
    justify-content: center;
    padding: 0 40px;
    max-width: 100%;
}

.plan-section {
    display: flex;
    flex-direction: column;
}

.plan-section .section-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gw-teal);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gw-orange);
}

.section-divider {
    width: 2px;
    background: linear-gradient(to bottom, transparent 0%, var(--border-light) 20%, var(--border-light) 80%, transparent 100%);
    margin: 50px 15px;
    align-self: stretch;
}

#hostingPlans {
    display: flex;
    width: 100%;
}

.security-plans-row {
    display: flex;
    gap: 15px;
}

.maintenance-section {
    flex: 1;
}

/* Plan Cards */
.all-plans-grid .plan-card {
    width: 250px;
    min-width: 250px;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.plan-card {
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    border-color: var(--gw-orange);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(43, 79, 94, 0.15);
}

.plan-card.selected {
    border-color: var(--success-green);
    background: var(--success-bg);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
}

.plan-card.purchased {
    border-color: var(--border-light);
    background: var(--bg-light);
    opacity: 0.7;
    position: relative;
}

.plan-card.purchased::after {
    content: 'PURCHASED';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--success-green);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.plan-card.popular {
    border-color: var(--gw-orange);
    padding-top: 25px;
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gw-orange) 0%, #ff8c42 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(244, 124, 60, 0.3);
    z-index: 1;
}

.plan-header {
    margin-bottom: 25px;
}

.plan-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    margin-top: 5px;
    color: var(--gw-teal);
    font-weight: 600;
}

.price {
    margin-bottom: 30px;
}

.price .currency {
    font-size: 1.4rem;
    vertical-align: top;
    color: var(--gw-orange);
    font-weight: 500;
}

.price .amount {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price .period {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.features {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
    font-size: 0.85rem;
    flex: 1;
    color: var(--text-dark);
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.features.collapsed {
    max-height: 0;
    margin-bottom: 0;
}

.features-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-light);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
    color: var(--gw-teal);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.features-toggle:hover {
    background: #e9ecef;
}

.features-toggle-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--gw-orange);
    transition: transform 0.3s ease;
}

.features-toggle.expanded .features-toggle-arrow {
    transform: rotate(180deg);
}

.features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding-left: 5px;
    line-height: 1.4;
}

.features li:last-child {
    border-bottom: none;
}

/* Selection Summary */
.selection-summary {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    border-radius: 10px;
    padding: 25px;
    margin-top: 35px;
    margin-bottom: 25px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.selection-summary h3 {
    margin-bottom: 20px;
    color: var(--gw-teal);
    font-size: 1.3rem;
    font-weight: 600;
}

.selected-list {
    margin-bottom: 20px;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
}

.selected-item:last-child {
    border-bottom: none;
}

.no-selection {
    color: var(--text-light);
    font-style: italic;
    padding: 15px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 2px solid var(--gw-orange);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gw-teal);
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gw-orange) 0%, var(--gw-orange-hover) 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gw-orange-hover) 0%, #d45820 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 124, 60, 0.35);
}

.btn-primary:disabled {
    background: var(--border-light);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-selected {
    background: linear-gradient(135deg, var(--success-green) 0%, #059669 100%);
    color: white;
}

.btn-selected:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
    background: white;
    color: var(--gw-teal);
    border: 2px solid var(--gw-teal);
}

.btn-secondary:hover {
    background: var(--gw-teal);
    color: white;
}

.btn-disabled {
    background: var(--bg-light);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.7;
}

.button-group {
    display: flex;
    justify-content: center;
    margin-top: 35px;
    gap: 20px;
}

.select-plan {
    width: 100%;
    margin-top: auto;
}

/* Payment Container */
.payment-container {
    max-width: 800px;
    margin: 0 auto;
}

.order-summary {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 35px;
    border: 1px solid var(--border-light);
}

.order-summary h3 {
    margin-bottom: 20px;
    color: var(--gw-teal);
    font-size: 1.3rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gw-teal);
}

.chargebee-embed {
    min-height: 500px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 25px;
    background: white;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(43, 79, 94, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--gw-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 25px;
}

.loading-spinner p {
    color: white;
    font-size: 1.2rem;
    font-weight: 300;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    position: fixed;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 10000;
    max-width: 400px;
}

.error-message button {
    background: white;
    color: #ef4444;
    border: none;
    padding: 6px 18px;
    border-radius: 6px;
    margin-top: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.error-message button:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-top: 30px;
}

.footer a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.3s ease;
}

.footer a:hover {
    border-color: white;
}

/* Responsive Design - Splash Page */
@media (max-width: 768px) {
    .splash-container {
        padding: 15px;
    }

    .splash-content {
        padding: 30px 20px;
    }

    .splash-logo {
        max-height: 60px;
        margin-bottom: 20px;
    }

    .splash-content h1 {
        font-size: 1.5rem;
    }

    .splash-subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .splash-services {
        gap: 15px;
        margin-bottom: 25px;
    }

    .splash-service {
        padding: 15px;
    }

    .splash-service h3 {
        font-size: 1rem;
    }

    .splash-service p {
        font-size: 0.9rem;
    }

    .splash-form input {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .splash-form .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .splash-content {
        padding: 25px 15px;
    }

    .splash-content h1 {
        font-size: 1.3rem;
    }

    .splash-divider {
        margin: 20px 0;
    }
}

/* Responsive Design - Main Content */
@media (max-width: 1200px) {
    .all-plans-grid {
        flex-direction: column;
        gap: 40px;
    }

    .section-divider {
        width: 100%;
        height: 2px;
        margin: 0;
        background: linear-gradient(to right, transparent 0%, var(--border-light) 20%, var(--border-light) 80%, transparent 100%);
    }

    .security-plans-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    #hostingPlans {
        justify-content: center;
    }

    .all-plans-grid .plan-card {
        width: 280px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
        background: white;
    }

    .container {
        border-radius: 0;
        box-shadow: none;
    }

    .header {
        padding: 25px 15px;
    }

    .header .logo {
        max-height: 50px;
    }

    .header h1 {
        font-size: 1.4rem;
    }

    .header p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .steps {
        padding: 20px 15px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .step {
        padding: 0 15px;
        flex: 1 1 auto;
        min-width: 140px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.85rem;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .step-content {
        padding: 20px 15px;
    }

    .selection-info {
        padding: 15px;
        margin-bottom: 25px;
    }

    .info-text {
        font-size: 0.95rem;
    }

    .category-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .category-subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .security-plans-row,
    #hostingPlans {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #hostingPlans .plan-card {
        width: 100%;
        max-width: 400px;
    }

    .features-toggle {
        display: flex;
    }

    .features {
        max-height: 500px;
    }

    .features.collapsed {
        max-height: 0;
        margin-bottom: 0;
        padding: 0;
        opacity: 0;
    }

    .all-plans-grid {
        padding: 0 15px;
        gap: 30px;
    }

    .plan-section .section-label {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .all-plans-grid .plan-card {
        width: 100%;
        max-width: 400px;
        min-height: auto;
        margin: 0 auto;
    }

    .plan-card {
        padding: 20px 15px;
    }

    .plan-card h3 {
        font-size: 1.2rem;
    }

    .price .amount {
        font-size: 2.2rem;
    }

    .features {
        font-size: 0.9rem;
    }

    .selection-summary {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .selection-summary h3 {
        font-size: 1.2rem;
    }

    .total-row {
        font-size: 1.1rem;
    }

    .button-group {
        flex-direction: column;
        margin-top: 25px;
        padding: 0 15px;
    }

    .button-group .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .btn {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 12px;
    }

    .header .logo {
        max-height: 45px;
    }

    .header h1 {
        font-size: 1.2rem;
    }

    .header p {
        font-size: 0.9rem;
    }

    .steps {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .step {
        margin-bottom: 10px;
        padding: 8px;
        justify-content: center;
        background: var(--bg-light);
        border-radius: 8px;
    }

    .step:last-child {
        margin-bottom: 0;
    }

    .all-plans-grid {
        padding: 0 10px;
    }

    .plan-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .price .currency {
        font-size: 1.2rem;
    }

    .price .amount {
        font-size: 2rem;
    }

    .price .period {
        font-size: 0.9rem;
    }

    .features {
        font-size: 0.85rem;
    }

    .features li {
        padding: 6px 0;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .selection-summary {
        margin-top: 20px;
        padding: 15px;
    }

    .selection-summary h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .selected-item {
        padding: 10px 0;
        font-size: 0.95rem;
    }

    .total-row {
        padding-top: 15px;
        font-size: 1.05rem;
    }

    .popular-badge {
        font-size: 0.7rem;
        padding: 3px 12px;
    }

    /* Payment Container */
    .payment-container {
        padding: 0 10px;
    }

    .order-summary {
        padding: 15px;
        margin-bottom: 20px;
    }

    .order-summary h3 {
        font-size: 1.1rem;
    }

    .summary-item {
        padding: 10px 0;
        font-size: 0.95rem;
    }

    .summary-total {
        padding-top: 15px;
        font-size: 1.1rem;
    }

    .chargebee-embed {
        padding: 15px;
    }

    /* Error Message */
    .error-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 15px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 20px 15px;
        font-size: 0.85rem;
    }
}