/* =============================================
   Plans Page Styles - Watawdeh Math Center
   ============================================= */

.plans-section {
    padding: 80px 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px;
    max-width: none;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .plans-grid {
        grid-template-columns: 1fr !important;
    }
}

.plan-card {
    background: var(--white);
    border-radius: 25px;
    padding: 35px 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--dark-gold));
}

.plan-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.plan-card.featured {
    border: 3px solid #06B6D4;
    box-shadow: 0 15px 50px rgba(6, 182, 212, 0.35);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdff 100%);
    position: relative;
}

.plan-card.featured::before {
    height: 6px;
    background: linear-gradient(90deg, #06B6D4, #10B981);
}

.plan-card.featured::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 25px;
    background: linear-gradient(135deg, #06B6D4, #10B981);
    z-index: -1;
    opacity: 0.2;
    filter: blur(15px);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: -45px;
    background: linear-gradient(135deg, #06B6D4, #10B981);
    color: white;
    padding: 10px 45px;
    font-weight: 800;
    font-size: 1rem;
    transform: rotate(-45deg);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.5);
    letter-spacing: 0.5px;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
}

.plan-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.plan-card.featured .plan-icon {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--primary-blue);
    transform: scale(1.1);
}

.plan-name {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-weight: 800;
}

.plan-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
}

.plan-pricing {
    text-align: center;
    margin-bottom: 30px;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    line-height: 1;
}

.plan-card.featured .plan-price {
    color: var(--gold);
}

.price-currency {
    font-size: 2rem;
    vertical-align: super;
}

.price-period {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 500;
    display: block;
    margin-top: 10px;
}

.plan-features {
    list-style: none;
    margin-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.plan-features li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    flex-shrink: 0;
}

.plan-features li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    flex-grow: 1;
}

.plan-features i {
    color: var(--gold);
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.plan-features .feature-text {
    flex: 1;
}

.plan-features .feature-highlight {
    color: var(--primary-blue);
    font-weight: 600;
}

.plan-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.plan-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.plan-card.featured .plan-button {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--primary-blue);
    font-size: 1.2rem;
    padding: 20px 40px;
}

/* Comparison Table */
.comparison-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.comparison-table {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
}

.comparison-table th {
    padding: 25px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:hover {
    background: var(--light-gray);
}

.comparison-table .feature-name {
    text-align: right;
    font-weight: 600;
    color: var(--primary-blue);
}

.comparison-table .check-icon {
    color: var(--gold);
    font-size: 1.5rem;
}

.comparison-table .times-icon {
    color: var(--text-gray);
    font-size: 1.5rem;
    opacity: 0.3;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    background: var(--white);
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin: 0;
    flex: 1;
}

.faq-icon {
    color: var(--gold);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 30px 25px;
    color: var(--text-gray);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Responsive */
@media (max-width: 768px) {
    .plan-card.featured {
        transform: scale(1);
    }
    
    .plan-card {
        padding: 30px 25px;
    }
}

/* =============================================
   NEW: Dynamic Plan Features
   ============================================= */

/* Plan Duration Badge */
.plan-duration {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #F0FDFF, #E0F2FE);
    border-radius: 50px;
    font-size: 0.95rem;
    color: #0891B2;
    font-weight: 700;
}

.plan-duration i {
    font-size: 1.1rem;
}

/* AI Requests Badge */
.ai-requests-badge {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    border: 2px solid #3B82F6;
    border-radius: 14px;
    padding: 15px 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: #1E40AF;
    font-weight: 700;
}

.ai-requests-badge i {
    font-size: 1.5rem;
    color: #3B82F6;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 8px;
    font-style: italic;
}

/* Feature Tooltip Button */
.feature-tooltip-btn {
    background: transparent;
    border: none;
    color: #06B6D4;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.feature-tooltip-btn:hover {
    color: #0891B2;
    transform: scale(1.2);
}

/* Exam Selection Section */
.exam-selection-section {
    margin-top: 25px;
    padding: 0;
}

.exam-section-title {
    font-size: 1.25rem;
    color: var(--dark-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.exam-section-title i {
    color: #06B6D4;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    padding: 8px;
    border-radius: 10px;
}

.exam-section-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 22px;
    padding-right: 40px;
    font-weight: 500;
}

/* Exam List */
.exam-list {
    margin-bottom: 20px;
    padding: 5px;
}

.exam-item {
    margin-bottom: 14px;
}

.exam-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.exam-checkbox-label:hover {
    background: linear-gradient(135deg, #F0FDFF, #ECFDF5);
    border-color: #06B6D4;
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.15);
}

/* Custom Checkbox */
.exam-checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    background: white;
    border: 2px solid #CBD5E1;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.exam-checkbox-label input[type="checkbox"]:hover {
    border-color: #06B6D4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.exam-checkbox-label input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #06B6D4, #10B981);
    border-color: #06B6D4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}

.exam-checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: 900;
}

.exam-checkbox-label input[type="checkbox"]:checked ~ .exam-details-wrapper .exam-name {
    color: #0891B2;
    font-weight: 900;
}

.exam-checkbox-label input[type="checkbox"]:checked ~ .exam-details-wrapper .exam-price {
    transform: scale(1.1);
}

.exam-checkbox-label:has(input:checked) {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border-color: #10B981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.exam-details-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exam-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-text);
    transition: all 0.3s ease;
    line-height: 1.3;
}

.exam-units {
    font-size: 0.9rem;
    color: #64748B;
    font-weight: 600;
}

.exam-price {
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #06B6D4, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    align-self: flex-start;
}

.exam-info-btn {
    background: linear-gradient(135deg, #F0FDFF, #E0F2FE);
    border: 2px solid #06B6D4;
    color: #06B6D4;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exam-info-btn:hover {
    background: linear-gradient(135deg, #06B6D4, #10B981);
    color: white;
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

/* Total Price Section */
.total-price-section {
    background: linear-gradient(135deg, #0F172A, #1E40AF);
    border-radius: 14px;
    padding: 20px 25px;
    margin-top: 22px;
    margin-bottom: 22px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3);
}

.price-total-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
}

.final-price-value {
    font-size: 1.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #22D3EE, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Plan Button States */
.plan-button.disabled {
    opacity: 0.5;
    
    background: #94A3B8;
    transform: none !important;
}

.plan-button.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Exam Tooltip Modal */
.exam-tooltip-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.exam-tooltip-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

.exam-tooltip-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #F3F4F6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--dark-text);
}

.exam-tooltip-close:hover {
    background: #EF4444;
    color: white;
    transform: rotate(90deg);
}

.exam-tooltip-header {
    background: linear-gradient(135deg, #06B6D4, #10B981);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.exam-tooltip-header i {
    font-size: 2rem;
}

.exam-tooltip-header h4 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.exam-tooltip-body {
    padding: 25px 30px;
}

.exam-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    font-weight: 600;
    color: var(--text-gray);
}

.detail-value {
    font-weight: 700;
    color: var(--dark-text);
}

.exam-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.exam-description strong {
    display: block;
    margin-bottom: 10px;
    color: var(--dark-text);
    font-size: 1.05rem;
}

.exam-description p {
    line-height: 1.7;
    color: var(--text-gray);
}

/* Plan Replacement Modal */
.plan-replacement-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.plan-replacement-content {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plan-replacement-header {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    padding: 25px 30px;
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.plan-replacement-header i {
    font-size: 2rem;
}

.plan-replacement-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
}

.plan-replacement-body {
    padding: 30px;
}

.replacement-notice {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #FEF3C7;
    border-radius: 12px;
    margin-bottom: 25px;
}

.replacement-notice i {
    font-size: 1.8rem;
    color: #F59E0B;
    flex-shrink: 0;
}

.replacement-notice p {
    line-height: 1.7;
    color: #78350F;
    margin: 0;
}

.plan-comparison-box {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 25px;
}

.old-plan,
.new-plan {
    background: #F9FAFB;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.plan-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-label.old {
    background: #FEE2E2;
    color: #DC2626;
}

.plan-label.new {
    background: #D1FAE5;
    color: #059669;
}

.plan-price-display {
    font-size: 1.8rem;
    font-weight: 900;
    color: #06B6D4;
    margin-top: 10px;
}

.arrow-divider {
    font-size: 2rem;
    color: #06B6D4;
}

.replacement-question {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-text);
    padding: 20px;
    background: #F0F9FF;
    border-radius: 12px;
}

.plan-replacement-footer {
    padding: 0 30px 30px;
    display: flex;
    gap: 15px;
}

.btn-replacement-cancel,
.btn-replacement-confirm {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-replacement-cancel {
    background: white;
    color: var(--dark-text);
    border: 2px solid var(--border-color);
}

.btn-replacement-cancel:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
}

.btn-replacement-confirm {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-replacement-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

/* Feature Tooltip (simple) */
.feature-tooltip {
    position: absolute;
    background: linear-gradient(135deg, #0F172A, #1E40AF);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    max-width: 300px;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}

.feature-tooltip::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: #0F172A;
}

@media (max-width: 640px) {
    .plan-comparison-box {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .arrow-divider {
        transform: rotate(90deg);
    }
    
    .exam-list {
        max-height: 200px;
    }
}

/* =============================================
   Guest Checkout Modal
   ============================================= */

.guest-checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.guest-checkout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
}

.guest-checkout-content {
    position: relative;
    background: white;
    border-radius: 24px;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.guest-checkout-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
}

.guest-checkout-close:hover {
    background: #EF4444;
    transform: rotate(90deg);
}

.guest-checkout-header {
    background: linear-gradient(135deg, #06B6D4, #10B981);
    color: white;
    padding: 30px;
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.guest-checkout-header i {
    font-size: 2.5rem;
}

.guest-checkout-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
}

.guest-checkout-body {
    padding: 30px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.guest-checkout-intro {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.guest-checkout-body .form-group {
    margin-bottom: 20px;
}

.guest-checkout-body .form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 10px;
    font-size: 1rem;
}

.guest-checkout-body .form-group label i {
    color: #06B6D4;
    font-size: 1.1rem;
}

.guest-checkout-body .form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.guest-checkout-body .form-group input:focus {
    outline: none;
    border-color: #06B6D4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.guest-checkout-body .form-group input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.field-error {
    display: block;
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 20px;
}

.order-summary-preview {
    background: linear-gradient(135deg, #F0FDFF, #ECFDF5);
    border: 2px solid #06B6D4;
    border-radius: 16px;
    padding: 20px;
    margin-top: 25px;
}

.order-summary-preview h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0891B2;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.order-summary-preview h4 i {
    font-size: 1.2rem;
}

#guestOrderSummary {
    border-bottom: 2px dashed #A5F3FC;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

#guestOrderSummary .summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--dark-text);
    font-size: 0.95rem;
}

#guestOrderSummary .summary-item .item-name {
    flex: 1;
}

#guestOrderSummary .summary-item .item-price {
    font-weight: 700;
    color: #06B6D4;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 800;
}

.order-total span:first-child {
    color: var(--dark-text);
}

#guestOrderTotal {
    background: linear-gradient(135deg, #06B6D4, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guest-checkout-footer {
    padding: 0 30px 30px;
    flex-shrink: 0;
}

.terms-checkbox-container {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.terms-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #10B981;
}

.checkbox-text {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
}

.terms-link {
    color: #06B6D4;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.terms-link:hover {
    color: #0891B2;
    border-bottom-color: #0891B2;
}

.footer-buttons {
    display: flex;
    gap: 15px;
}

.btn-guest-cancel,
.btn-guest-checkout {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.btn-guest-cancel {
    background: white;
    color: var(--dark-text);
    border: 2px solid var(--border-color);
}

.btn-guest-cancel:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
}

.btn-guest-checkout {
    background: linear-gradient(135deg, #06B6D4, #10B981);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-guest-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
    filter: brightness(1.1);
}

.btn-guest-checkout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

@media (max-width: 640px) {
    .guest-checkout-content {
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
        margin-top: auto;
    }
    
    .footer-buttons {
        flex-direction: column-reverse;
    }
    
    .terms-checkbox-container {
        padding: 12px;
    }
    
    .checkbox-text {
        font-size: 0.9rem;
    }
}


