/**
 * Order Page Styles - Enhanced Version
 * Modern design for assignment/exam order form
 */

/* Order Page Wrapper */
.order-page-wrapper {
    padding: 6rem 0 3rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.order-page-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.order-page-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

.order-page-wrapper .container {
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

/* Sidebar Card */
.order-sidebar {
    margin-bottom: 2rem;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 120px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.sidebar-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.sidebar-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 11px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: default;
    border: 2px solid transparent;
}

.sidebar-feature:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.sidebar-feature i {
    font-size: 1.8rem;
    color: #667eea;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-feature:hover i {
    color: #667eea;
    transform: scale(1.1) rotate(5deg);
}

.sidebar-feature span {
    font-size: 0.95rem;
    font-weight: 600;
    flex: 1;
}

/* Order Form Card */
.order-form-section {
    margin-bottom: 2rem;
}

.order-form-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: box-shadow 0.3s ease;
}

.order-form-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Form Title */
.form-title {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.3;
}

.form-subtitle {
    font-size: 1.15rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

/* Coupon Success */
.coupon-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Note: Form element styles (.form-input, validation states, submit button) 
   are defined in banner.css since banner-form.php is shared across pages */

/* Responsive Design */
@media (max-width: 991px) {
    .order-page-wrapper {
        padding: 5rem 0 2rem;
    }
    
    .sidebar-card {
        position: static;
        margin-bottom: 2rem;
    }
    
    .order-form-card {
        padding: 2.5rem;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
    
    .form-subtitle {
        font-size: 1rem;
    }
    .order-form-section{
        order: 1;
    }
    .order-sidebar{
        order: 2;
    }

}

@media (max-width: 767px) {
    .order-page-wrapper {
        padding: 4rem 0 2rem;
    }
    
    .order-form-card {
        padding: 2rem 1.5rem;
    }
    
    .sidebar-card {
        padding: 2rem 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-subtitle {
        font-size: 0.95rem;
    }
    
    .sidebar-feature {
        font-size: 0.9rem;
        padding: 0.875rem;
    }
    
    .sidebar-feature i {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}

/* Note: Grid system (.row, .col-*) is defined in theme style.css */
