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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background: #6E5388;
    min-height: 100vh;
    padding: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Header */
.header {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    color: #333;
    position: relative;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 15px;
}

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

.header .logo:nth-child(2) {
    max-height: 58px; /* 25% smaller than 78px */
}

.header h1 {
    font-size: 1.8rem;
    margin: 10px 0 5px;
}

.header p {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0;
}

/* Step Indicator */
.steps {
    display: flex;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
}

.step {
    display: flex;
    align-items: center;
    padding: 0 30px;
    position: relative;
    color: #999;
}

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

.step.active {
    color: #667eea;
}

.step.completed {
    color: #10b981;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step.active .step-number {
    background: #667eea;
    color: white;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
    font-size: 0.9rem;
}

.step-label {
    font-weight: 500;
}

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

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

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

.selection-info {
    background: #f0f4ff;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.info-text {
    color: #4a5568;
    font-size: 1rem;
    margin: 0;
}

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

.category-title {
    color: #1a202c;
    font-size: 1.5rem;
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.category-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* All Plans in One Row */
.all-plans-grid {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    padding: 0 15px;
}

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

.plan-section .section-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.section-divider {
    width: 2px;
    background: linear-gradient(to bottom, #e2e8f0 0%, #cbd5e0 50%, #e2e8f0 100%);
    margin: 40px 15px;
    align-self: stretch;
}

#hostingPlans {
    display: flex;
}

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

.maintenance-section {
    flex: 1;
}

/* Adjust plan card width for single row display */
.all-plans-grid .plan-card {
    width: 260px;
    min-width: 260px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.plan-card {
    border: 2px solid #e2e8f0;
    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: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.plan-card.selected {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.plan-card.purchased {
    border-color: #cbd5e0;
    background: #f8f8f8;
    opacity: 0.8;
    position: relative;
}

.plan-card.purchased::after {
    content: 'PURCHASED';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.plan-card.popular {
    border-color: #667eea;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.plan-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a202c;
}

.price {
    margin-bottom: 30px;
}

.price .currency {
    font-size: 1.3rem;
    vertical-align: top;
    color: #6E5388;
}

.price .amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a202c;
}

.price .period {
    font-size: 1rem;
    color: #718096;
}

.features {
    list-style: none;
    margin-bottom: 20px;
    text-align: left;
    font-size: 0.9rem;
    flex: 1;
}

.features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 5px;
}

.features li::before {
    display: none; /* Hide default checkmark since we're using inline marks */
}

/* Customer Form */
.customer-form {
    max-width: 600px;
    margin: 0 auto;
}

.customer-form h2 {
    margin-bottom: 30px;
    color: #1a202c;
}

.customer-form h3 {
    margin-top: 30px;
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 1.2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #4a5568;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

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

.order-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.order-summary h3 {
    margin-bottom: 15px;
    color: #1a202c;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a202c;
}

.chargebee-embed {
    min-height: 500px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

/* Selection Summary */
.selection-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.selection-summary h3 {
    margin-bottom: 15px;
    color: #1a202c;
}

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

.selected-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.no-selection {
    color: #718096;
    font-style: italic;
    padding: 10px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a202c;
}

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

.btn-primary {
    background: #6E5388;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5a4470;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(110, 83, 136, 0.3);
}

.btn-primary:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-selected {
    background: #10b981;
    color: white;
}

.btn-selected:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.select-plan {
    width: 100%;
}

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

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

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

/* Error Message */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 10000;
    max-width: 400px;
}

.error-message button {
    background: white;
    color: #ef4444;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 600;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: white;
    font-size: 0.9rem;
}

.footer a {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    color: #718096;
    font-size: 0.85rem;
    margin-top: 20px;
}

.footer a {
    color: #6E5388;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .all-plans-grid {
        flex-direction: column;
        gap: 40px;
    }

    .section-divider {
        width: 100%;
        height: 2px;
        margin: 0;
    }

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

    #hostingPlans {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        margin-bottom: 20px;
        padding: 0;
    }

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

    .plans-grid {
        grid-template-columns: 1fr;
    }

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

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

    .plan-card.popular {
        transform: scale(1);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .button-group .btn {
        width: 100%;
    }

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

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 8px;
    }

    .header {
        padding: 30px 15px;
    }

    .step-content {
        padding: 20px;
    }

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

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