/* Pre-order System Styles */
/* Enhanced pricing and payment functionality for The Internship Book */

/* Enhanced Pricing Cards */
.pricing-options {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin: 50px 0;
    padding: 0 20px;
    flex-wrap: wrap;
}

@media (min-width: 1200px) {
    .pricing-options {
        max-width: 1200px;
        margin: 50px auto;
    }
}

@media (max-width: 768px) {
    .pricing-options {
        flex-direction: column;
        align-items: center;
    }
}

.price-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid var(--border-color);
    cursor: pointer;
    flex: 1;
    max-width: 350px;
    min-width: 300px;
}

/* Dark mode price cards */
[data-theme="dark"] .price-card {
    background: var(--bg-alt-color);
    border-color: var(--border-color);
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-color-hover);
    border-color: var(--primary-color);
}

.price-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: scale(1.05);
    border-color: var(--secondary-color);
}

/* Dark mode featured card */
[data-theme="dark"] .price-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

/* India-Only Badge */
.india-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #FF6B35, #F7941E);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
    display: none; /* Initially hidden, shown by JavaScript */
    align-items: center;
    gap: 4px;
    animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.india-badge::before {
    content: '🇮🇳';
    font-size: 0.9rem;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Dark mode card headers */
[data-theme="dark"] .card-header h3 {
    color: var(--pure-white);
}

/* Featured card header */
.price-card.featured .card-header h3 {
    color: white;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
    text-align: center;
}

/* Dark mode original price */
[data-theme="dark"] .original-price {
    color: #aaa;
}

.price-card.featured .original-price {
    color: rgba(255, 255, 255, 0.7);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

/* Dark mode features list */
[data-theme="dark"] .features-list li {
    color: var(--pure-white);
    border-bottom-color: var(--border-color);
}

.price-card.featured .features-list li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.order-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(244, 93, 1, 0.4);
}

.price-card.featured .order-btn {
    background: white;
    color: var(--primary-color);
}

.price-card.featured .order-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* Enhanced Countdown Timer */
.countdown {
    text-align: center;
    margin: 40px 0;
}

.countdown-label {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 600;
}

/* Dark mode countdown label */
[data-theme="dark"] .countdown-label {
    color: var(--pure-white);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.timer-unit {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 20px 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
    min-width: 80px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

/* Dark mode timer units */
[data-theme="dark"] .timer-unit {
    background: var(--bg-alt-color);
    border-color: var(--border-color);
    box-shadow: 0 5px 20px var(--shadow-color);
}

.timer-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.timer-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.timer-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
    font-weight: 600;
}

/* Dark mode timer text */
[data-theme="dark"] .timer-label {
    color: var(--text-secondary);
}

/* Pre-order Modal */
.preorder-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.preorder-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: white;
    border-radius: 25px;
    padding: 40px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary-color);
    background: rgba(244, 93, 1, 0.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-header h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.selected-package {
    background-color var(--secondary-color);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
}

.package-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.package-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 800;
}

.package-pricing .original-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.2rem;
}

/* Form Styles */
.preorder-form {
    max-width: 100%;
}

.form-section {
    margin-bottom: 35px;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(244, 93, 1, 0.1);
}

.form-group input:invalid {
    border-color: #ff4757;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.package-features li {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Order Summary */
.order-summary {
    background-color: var(--bg-secandary);
    padding: 25px;
    border-radius: 15px;
    margin-top: 15px;
    border: 1px solid #dee2e6;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    font-size: 1rem;
}

.summary-item:not(.total) {
    border-bottom: 1px solid #dee2e6;
}

.summary-item.discount {
    color: #28a745;
    font-weight: 600;
}

.discount-text {
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.summary-item.total {
    border-top: 3px solid var(--primary-color);
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Payment Section */
.payment-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.payment-options {
    margin: 20px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background: var(--accent-color);
}

.payment-option input {
    margin-right: 15px;
    transform: scale(1.2);
}

.payment-info {
    flex: 1;
}

.payment-info strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.payment-info small {
    color: #666;
    font-size: 0.9rem;
}

.security-badges {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e1e1e1;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    flex-direction: column;
    gap: 4px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 93, 1, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-amount {
    font-size: 1.2rem;
    font-weight: 800;
}

.btn-secondary {
    background-color: var(--bg-color);
    color: var(--primary-grey);
    border: 2px solid #dee2e6;
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: #adb5bd;
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 167, 69, 0.9); /*green*/
    backdrop-filter: blur(10px);
}

.success-content {
    background: white;
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.success-header {
    margin-bottom: 30px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-15px); }
    70% { transform: translateY(-7px); }
    90% { transform: translateY(-3px); }
}

.success-header h2 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 2rem;
}

.success-header p {
    font-size: 1.1rem;
    color: #666;
}

.success-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.success-actions {
    margin: 25px 0;
    text-align: left;
}

.success-actions p {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.95rem;
}

.success-btn {
    background: linear-gradient(135deg, #28a745, var(--primary-teal);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.notification.warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.notification.info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-message {
    flex: 1;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
}

/* Trust Badges Enhancement */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0 0 0;
    padding: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

/* Dark mode trust badges */
[data-theme="dark"] .trust-badges {
    background: var(--bg-alt-color);
    border-color: var(--border-color);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Dark mode trust items */
[data-theme="dark"] .trust-item {
    color: var(--pure-white);
}

.trust-icon {
    font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-options {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 10px;
    }
    
    .price-card {
        padding: 30px 20px;
        width: 100%;
        max-width: 400px;
        min-width: unset;
    }
    
    .price-card.featured {
        transform: none;
        order: -1;
    }
    
    .price-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 10px;
        max-height: 95vh;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    .timer-unit {
        padding: 15px 10px;
        min-width: 60px;
    }
    
    .timer-number {
        font-size: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .trust-badges {
        gap: 20px;
        padding: 20px;
    }
    
    .trust-item {
        font-size: 0.9rem;
    }
    
    .security-badges {
        flex-direction: column;
        gap: 10px;
    }
    
    .success-content {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .notification {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    .amount {
        font-size: 2.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .timer-number {
        font-size: 1.8rem;
    }
    
    .timer-unit {
        min-width: 50px;
        padding: 12px 8px;
    }
    
    .package-pricing {
        flex-direction: column;
        gap: 5px;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
}

/* Additional styles for static pre-order system */
.info-box {
    background: #e3f2fd;
    border: 1px solid #1976d2;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.info-box p {
    margin: 8px 0;
    color: #1565c0;
    font-size: 0.95rem;
}

.info-box strong {
    color: #0d47a1;
}

/* Success modal for static version */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 167, 69, 0.9);
    backdrop-filter: blur(10px);
}

.success-content {
    background: white;
    border-radius: 25px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.success-header {
    margin-bottom: 30px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-15px); }
    70% { transform: translateY(-7px); }
    90% { transform: translateY(-3px); }
}

.success-header h2 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 2rem;
}

.success-header p {
    font-size: 1.1rem;
    color: #666;
}

.success-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.success-actions {
    margin: 25px 0;
    text-align: left;
}

.success-actions p {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.95rem;
}

.success-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .price-card {
        border: 3px solid #000;
    }
    
    .form-group input,
    .form-group select {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .popular-badge {
        animation: none;
    }
    
    .success-icon {
        animation: none;
    }
    
    .notification {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}