/* ========================================
   MODERN ORDER PAGE THEME
   Premium Design with Vibrant Colors & Animations
   ======================================== */

:root {
    --order-primary: #2ecc71;
    --order-primary-dark: #27ae60;
    --order-secondary: #26e4b2;
    --order-accent: #f39c12;
    --order-gradient-1: linear-gradient(135deg, #47a555 0%, #26e4b2 100%);
    --order-gradient-2: linear-gradient(135deg, #249b26 0%, #f5576c 100%);
    --order-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --order-gradient-hero: linear-gradient(135deg, #17a772 0%, #26e4b2 50%, #33bf10 100%);
    --order-card-shadow: 0 20px 60px rgba(20, 178, 86, 0.15);
    --order-card-hover-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

/* ========================================
   BODY & BACKGROUND STYLING
   ======================================== */

body.order-page {
    background-image: url('../images/organic_farming.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body.order-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.85) 0%, rgba(232, 245, 233, 0.85) 50%, rgba(255, 243, 224, 0.85) 100%);
    backdrop-filter: blur(8px);
    z-index: -1;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ========================================
   HERO HEADER SECTION
   ======================================== */

.order-hero-header {
    background: var(--order-gradient-hero);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.order-hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    animation: patternMove 30s linear infinite;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

.order-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.order-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease-out;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.order-hero-badge i {
    font-size: 18px;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.order-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.order-hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ORDER FORM SECTION
   ======================================== */

.order-form-section {
    padding: 80px 0;
    position: relative;
}

.order-form-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.order-form-card {
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--order-card-shadow);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--order-gradient-hero);
}

.order-form-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.order-form-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.order-form-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--order-gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    }
}

.order-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.order-form-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* ========================================
   FORM FIELDS STYLING
   ======================================== */

.order-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.order-form-group {
    position: relative;
}

.order-form-group.full-width {
    grid-column: 1 / -1;
}

.order-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.order-form-group label i {
    color: #667eea;
    font-size: 16px;
}

.order-form-group input,
.order-form-group select,
.order-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.order-form-group input:focus,
.order-form-group select:focus,
.order-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.order-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Price Display */
.order-price-display {
    background: linear-gradient(135deg, #bbccb6 0%, #33a31a 100%);
    color: rgb(33, 29, 29);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: priceGlow 2s ease-in-out infinite;
}

@keyframes priceGlow {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }

    50% {
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    }
}

.weight-summary {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
    font-style: italic;
}

/* ========================================
   SUBMIT BUTTON
   ======================================== */

.order-submit-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, #3a852d 0%, #4daa0f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.order-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.order-submit-btn:hover::before {
    left: 100%;
}

.order-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.order-submit-btn:active {
    transform: translateY(-1px);
}

.order-submit-btn i {
    font-size: 1.3rem;
    animation: checkBounce 2s ease-in-out infinite;
}

@keyframes checkBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ========================================
   MESSAGE BOX
   ======================================== */

.order-message-box {
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: none;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-message-box.show {
    display: flex;
}

.order-message-box.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 5px solid #28a745;
}

.order-message-box.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.order-message-box i {
    font-size: 24px;
}

/* ========================================
   DECORATIVE ELEMENTS
   ======================================== */

.order-decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

.order-decorative-circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.order-decorative-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .order-hero-header {
        padding: 80px 0 60px;
    }

    .order-hero-title {
        font-size: 2.2rem;
    }

    .order-hero-subtitle {
        font-size: 1.1rem;
    }

    .order-form-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .order-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .order-form-title {
        font-size: 1.6rem;
    }

    .order-price-display {
        font-size: 1.6rem;
    }

    .order-submit-btn {
        font-size: 1.1rem;
        padding: 16px 30px;
    }
}

@media (max-width: 480px) {
    .order-hero-title {
        font-size: 1.8rem;
    }

    .order-hero-subtitle {
        font-size: 1rem;
    }

    .order-form-card {
        padding: 25px 15px;
    }

    .order-form-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.order-text-gradient {
    background: var(--order-gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.order-glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}