/* Checkout Page Styles */

.checkout-container {
    margin-top: 100px;
    padding: 2rem 5%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    min-height: 70vh;
}

.checkout-header {
    text-align: center;
    margin-bottom: 3rem;
}

.checkout-header h1 {
    font-size: 3rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.checkout-form {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFD700' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    background: var(--dark-bg);
    color: var(--text-primary);
    padding: 0.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-btn {
    padding: 1rem;
    background: var(--glass-bg);
    border: 2px dashed var(--glass-border);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.file-upload-btn:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    left: -9999px;
}

.file-preview {
    margin-top: 1rem;
    text-align: center;
}

.file-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    border: 2px solid var(--primary-yellow);
}

.payment-info {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--primary-yellow);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-info h3 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.payment-info p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.payment-info strong {
    color: var(--text-primary);
}

.order-summary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h2 {
    color: var(--primary-yellow);
    margin-bottom: 1.5rem;
    text-align: center;
}

.order-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.order-item-name {
    color: var(--primary-yellow);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.order-item-detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.order-item-price {
    color: var(--text-primary);
    font-weight: bold;
    margin-top: 0.5rem;
}

.summary-totals {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-yellow);
    padding-top: 1rem;
    border-top: 2px solid var(--primary-yellow);
}

.place-order-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-3);
    border: none;
    border-radius: 50px;
    color: var(--dark-bg);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.place-order-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.place-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.success-modal.active {
    display: flex;
}

.success-modal-content {
    background: var(--card-bg);
    border: 2px solid var(--primary-yellow);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-icon {
    font-size: 5rem;
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.success-modal-content h2 {
    color: var(--primary-yellow);
    margin-bottom: 1rem;
}

.success-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.order-number {
    font-size: 1.5rem;
    color: var(--primary-yellow);
    font-weight: bold;
    margin: 1rem 0;
}

@media (max-width: 968px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .checkout-header h1 {
        font-size: 2rem;
    }
    
    .checkout-form,
    .order-summary {
        padding: 1.5rem;
    }
}
