/* Order Page Specific Styles */

/* New Order Page Styles */
.order-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.order-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.order-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.order-process {
    padding: 60px 0;
    background: #f8fafc;
}

.order-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    flex: 1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #2563eb;
    color: white;
}

.step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.step p {
    font-size: 0.9rem;
    color: #6b7280;
}

.order-content {
    padding: 80px 0;
}

.order-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.package-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.package-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.package-card:hover {
    border-color: #2563eb;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
}

.package-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
}

.package-card.featured {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.package-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.package-price {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1.5rem;
}

.package-features ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.package-features li {
    padding: 0.5rem 0;
    color: #6b7280;
}

.package-features li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 0.5rem;
}

.package-note {
    text-align: center;
    margin-top: 2rem;
    color: #6b7280;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    /* Fix for visibility issue: ensure dark text on white background */
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-note {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem 0;
}

.form-note p {
    margin: 0;
    color: #0c4a6e;
}

.payment-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.psp-info {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.psp-info ul {
    list-style: none;
    padding: 0;
}

.psp-info li {
    padding: 0.5rem 0;
    color: #374151;
}

.psp-info li:before {
    content: "•";
    color: #2563eb;
    font-weight: bold;
    margin-right: 0.5rem;
}

.psp-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.psp-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.psp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sandbox-note {
    text-align: center;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.sandbox-note p {
    margin: 0;
    color: #92400e;
    font-weight: 600;
}

.confirmation-info {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.confirmation-info ul {
    list-style: none;
    padding: 0;
}

.confirmation-info li {
    padding: 0.5rem 0;
    color: #166534;
}

.confirmation-info li:before {
    content: "✓";
    color: #22c55e;
    font-weight: bold;
    margin-right: 0.5rem;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.important-links {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.important-links h3 {
    margin-bottom: 1rem;
    color: #374151;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.links-grid a {
    color: #2563eb;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.links-grid a:hover {
    background: #eff6ff;
}

.compliance-note {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 1rem;
    margin: 2rem 0;
}

.compliance-note p {
    margin: 0;
    color: #991b1b;
}

.sandbox-banner {
    background: #f59e0b;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.sandbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.notification-success {
    border-left: 4px solid #22c55e;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

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

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6b7280;
}

@media (max-width: 768px) {
    .order-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .package-options {
        grid-template-columns: 1fr;
    }

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

    .psp-buttons {
        flex-direction: column;
    }

    .psp-btn {
        min-width: auto;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

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

/* Bank Transfer Modal Styles */
.bank-transfer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.bank-transfer-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.bank-transfer-content h3 {
    color: #1e40af;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.bank-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #2563eb;
}

.bank-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.bank-info strong {
    color: #374151;
    font-weight: 600;
}

.bank-instructions {
    background: #fef3c7;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #f59e0b;
}

.bank-instructions h4 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.bank-instructions ol {
    margin: 0;
    padding-left: 1.5rem;
}

.bank-instructions li {
    margin: 0.5rem 0;
    color: #92400e;
    font-size: 0.95rem;
}

.bank-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.bank-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.bank-actions .btn-primary {
    background: #2563eb;
    color: white;
}

.bank-actions .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.bank-actions .btn-secondary {
    background: #6b7280;
    color: white;
}

.bank-actions .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .bank-transfer-content {
        padding: 1.5rem;
        margin: 10px;
    }

    .bank-actions {
        flex-direction: column;
    }

    .bank-actions .btn {
        width: 100%;
    }
}

.cart-section {
    padding: 80px 0;
    background: #f8fafc;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-items {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.cart-items h2 {
    color: #1f2937 !important;
    /* Force dark text */
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
}

.order-summary h3,
.item-info h4,
.item-info p,
.summary-row,
.summary-row span,
.summary-row.total,
.summary-row.total span,
.empty-cart h3,
.empty-cart p,
.secure-payment-notice,
.secure-payment-notice i,
.checkout-summary-item,
.checkout-summary-item span,
.checkout-summary-item.total,
.checkout-summary-item.total span {
    color: #1f2937 !important;
}

.empty-cart {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

.empty-cart i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-cart h3 {
    color: #374151;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.item-info h4 {
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-info p {
    color: #6b7280;
    font-size: 0.9rem;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #059669;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.25rem;
}

.quantity-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    background: none;
    font-weight: 600;
    color: #1f2937;
}

.remove-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.remove-btn:hover {
    background: #fef2f2;
}

.order-summary {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    height: fit-content;
    position: sticky;
    background-color: #ffffff !important;
    /* Force white background */
    top: 100px;
}

.order-summary h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
}

.summary-details {
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #374151;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
}

.payment-methods {
    margin-bottom: 2rem;
}

.payment-methods h4 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-option:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.payment-option input[type="radio"] {
    margin: 0;
}

.payment-option input[type="radio"]:checked+label {
    color: #2563eb;
    font-weight: 600;
}

.payment-option:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
}

.payment-option i {
    color: #2563eb;
}

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
}

.demo-products {
    padding: 80px 0;
    background: white;
}

.demo-products h2 {
    text-align: center;
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.demo-products p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.demo-product {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.demo-product:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.product-info h3 {
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 1.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.close {
    color: #6b7280;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover {
    color: #374151;
}

.checkout-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    color: #1f2937;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.payment-details {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.selected-payment {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.selected-payment p {
    margin: 0;
    color: #374151;
    font-weight: 500;
}

.payment-method-details {
    margin-top: 1rem;
}

.checkout-summary {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #374151;
}

.checkout-summary-item.total {
    font-weight: 700;
    color: #1f2937;
    border-top: 2px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .order-summary {
        position: static;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .item-actions {
        justify-content: center;
    }

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

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {

    .cart-items,
    .order-summary {
        padding: 1.5rem;
    }

    .modal-header,
    .checkout-form {
        padding: 1.5rem;
    }

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