/* Base Styles */
:root {
    --primary-color: #FFA726;
    --primary-dark: #F57C00;
    --secondary-color: #66BB6A;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --border-color: #e0e0e0;
    --text-color: #444;
    --text-light: #666;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --animation-duration: 0.5s;
    --animation-stagger: 0.1s;
    --animation-easing: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Shared Animation Classes */
.animate-entrance {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp var(--animation-duration) var(--animation-easing) forwards;
}

.animate-delay-1 {
    animation-delay: calc(var(--animation-duration) + var(--animation-stagger));
}

.animate-delay-2 {
    animation-delay: calc(var(--animation-duration) + (var(--animation-stagger) * 2));
}

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

/* Card containers */
.egg-availability-card,
.form-section,
.payment-details-section {
    animation: fadeInUp var(--animation-duration) var(--animation-easing) forwards;
}

/* Staggered appearance */
.egg-availability-card { animation-delay: 0.1s; }
.form-section { animation-delay: 0.2s; }
.payment-details-section { animation-delay: 0.3s; }

/* Card Headers */
.egg-card-header,
.section-title {
    animation: fadeInUp var(--animation-duration) var(--animation-easing) 0.2s both;
}

/* Stats/Form Groups */
.egg-stats,
.input-group,
.payment-details-grid {
    animation: fadeInUp var(--animation-duration) var(--animation-easing) 0.3s both;
}

/* Footer Elements */
.egg-card-footer,
.payment-button-container {
    animation: fadeInUp var(--animation-duration) var(--animation-easing) 0.4s both;
}

/* Individual Items */
.stat-item,
.payment-detail,
.input-wrapper {
    animation: fadeInUp var(--animation-duration) var(--animation-easing) both;
}

/* Create staggered delays for items */
.stat-item:nth-child(1) { animation-delay: 0.3s; }
.stat-item:nth-child(2) { animation-delay: 0.4s; }
.stat-item:nth-child(3) { animation-delay: 0.5s; }

.input-group:nth-child(1) { animation-delay: 0.3s; }
.input-group:nth-child(2) { animation-delay: 0.4s; }

/* Price Calculation */
.price-calculation {
    animation: 
        fadeInUp var(--animation-duration) var(--animation-easing) 0.5s both,
        pulse 2s 1.5s ease-in-out;
}

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

/* Buttons */
.btn-primary {
    animation: fadeInUp var(--animation-duration) var(--animation-easing) 0.6s both;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fefcf7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='34.64' viewBox='40 42.68 40 34.64'%3E%3Cg fill='none' stroke='%23c9b47e' stroke-width='0.6' stroke-opacity='0.4'%3E%3Ccircle cx='60' cy='60' r='20'/%3E%3Ccircle cx='40' cy='60' r='20'/%3E%3Ccircle cx='80' cy='60' r='20'/%3E%3Ccircle cx='50' cy='77.32' r='20'/%3E%3Ccircle cx='70' cy='77.32' r='20'/%3E%3Ccircle cx='50' cy='42.68' r='20'/%3E%3Ccircle cx='70' cy='42.68' r='20'/%3E%3Ccircle cx='30' cy='42.68' r='20'/%3E%3Ccircle cx='90' cy='42.68' r='20'/%3E%3Ccircle cx='30' cy='77.32' r='20'/%3E%3Ccircle cx='90' cy='77.32' r='20'/%3E%3Ccircle cx='40' cy='94.64' r='20'/%3E%3Ccircle cx='80' cy='94.64' r='20'/%3E%3Ccircle cx='40' cy='25.36' r='20'/%3E%3Ccircle cx='80' cy='25.36' r='20'/%3E%3Ccircle cx='60' cy='94.64' r='20'/%3E%3Ccircle cx='60' cy='25.36' r='20'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 30px 25.98px;
}

/* Layout */
.order-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.order-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.header-icon-container {
    position: relative;
    display: inline-block;
}

.header-icon, .egg-icon {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
    margin-top:9px;
}

.free-range-badge {
    position: absolute;
    top: -5px;
    right: -15px;
    background: var(--secondary-color);
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    z-index: 10;
    opacity: 0;
    transform: scale(0) rotate(-10deg);
    animation: 
        badgePopIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.5s forwards,
        badgeWobble 1.5s 1.1s ease-in-out infinite alternate;
}

@keyframes badgePopIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-10deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.2) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(15deg);
    }
}

.order-header h1 {
    margin: 0;
    font-size: 2.2rem;
    color: var(--dark-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-subtitle {
    margin-top: 8px;
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 80%;
    margin: 5px auto 0;
    line-height: 1.5;
}

/* Card Styles */
.egg-availability-card, .form-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
}

.egg-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.egg-icon-container {
    margin: 0 0 15px 0;
}

.egg-card-header h2, .section-title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.egg-icon-container, .input-icon {
    margin-right: 0;
    margin-bottom: 15px;
    width: 48px;
    height: 48px;
    background: #FFF8E1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Stats and Form Groups */
.egg-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0;
}

.stat-item, .input-group {
    display: flex;
    align-items: center;
    padding: 12px 0;
}

.stat-content, .input-wrapper {
    flex: 1;
}

.stat-label, .input-wrapper label, .price-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.stat-value, .price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.stat-unit {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Footer Styles */
.egg-card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.farm-details {
    display: flex;
    align-items: flex-start;
}

.farm-details i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 12px;
    margin-top: 2px;
}

.farm-fresh {
    margin: 0;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.collection-info {
    margin: 5px 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Form Elements */
.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.input-wrapper input {
    width: 80%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 167, 38, 0.2);
}

/* Slider Styles */
.slider-container {
    padding: 15px 0;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.slider-value {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-dark);
    gap: 5px;
}

.slider-value i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.slider:hover::-webkit-slider-thumb {
    transform: scale(1.1);
}

/* Price Calculation */
.price-calculation {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 187, 106, 0.1);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-top: 25px;
    gap: 10px;
}

.price-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
}

.price-content {
    display: flex;
    flex-direction: column;
}

/* Button Styles */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    :root {
        --animation-duration: 0.4s;
        --animation-stagger: 0.08s;
    }
    
    .order-container {
        padding: 15px;
    }
    
    .order-header h1 {
        font-size: 1.8rem;
    }
    
    .header-icon, .egg-icon {
        font-size: 2rem;
    }
    
    .form-section, .egg-availability-card {
        padding: 20px;
    }
    
    .egg-icon-container, .input-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    .stat-value, .price-amount {
        font-size: 1.3rem;
    }
    
    .header-subtitle {
        font-size: 1rem;
    }
    
    /* Simplify animations on mobile */
    .stat-item,
    .input-group {
        animation: none;
        opacity: 1;
    }
}

/* Row layout for stats */
.egg-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 25px 0;
    position: relative;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    text-align: center;
    flex: 1;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: #FFF8E1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #FFA726;
    font-size: 1rem;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(0,0,0,0.1);
}

.certification-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 1rem 0;
    text-align: center;
}

.certification-info i {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-right: 6px;
}

.cert-link {
    color: var(--primary-dark);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cert-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Form Validation */
.is-invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.error-container {
    position: relative;
    width: 100%;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    position: absolute;
}

.slider-error-container {
    margin-top: 10px;
    min-height: 20px;
}

.slider-error {
    color: #dc3545;
    font-size: 0.875em;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Compact Contact Info Section */
.form-section {
    padding: 20px;
}

.input-group {
    margin-bottom: 12px;
    padding: 2px 0;
}

.input-icon {
    margin-top: 32px;
    margin-right: 12px !important;
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.input-wrapper input {
    width: 85%;
    padding: 10px 12px;
    font-size: 0.95rem;
}

.input-wrapper label {
    margin-bottom: 3px;
    font-size: 0.9rem;
}

/* Payment Page Specific Styles */
.payment-details-section {
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
}

.payment-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.payment-detail {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.detail-label {
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.detail-value {
    color: var(--dark-color);
    text-align: right;
    font-family: monospace;
    word-break: break-word;
    max-width: 100%;
}

.qr-section {
    margin-top: 25px;
    text-align: center;
}

.qr-container {
    margin: 20px auto;
    padding: 15px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    display: inline-block;
}

.qr-image {
    width: 200px;
    height: 200px;
    border: 1px solid var(--border-color);
    padding: 5px;
    background: white;
}

.variable-symbol {
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-dark);
}

.payment-button-container {
    margin-top: 25px;
}

.btn.pay {
    background-color: var(--secondary-color);
    width: 100%;
}

.btn.pay:hover {
    background-color: #4CAF50;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding-left: 8px;
    font-size: 1rem;
    color: #333;
}
.copy-btn:hover {
    color: #007bff;
}

.info-button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    margin-left: 5px;
    color: #888;
}

/* Centered column layout for farm details */
.farm-details {
    display: flex;
    justify-content: center;
    width: 100%;
}

.info-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.collection-info-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
    justify-content: center;
}

.collection-info-text i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* AUTHENTICATION STYLES */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 1rem;
    animation: fadeInUp var(--animation-duration) var(--animation-easing) forwards;
}

.auth-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-light);
}

.auth-form {
    margin-top: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 167, 38, 0.2);
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.auth-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
}

/* Admin Approval Styles */
.approval-list {
    margin-top: 1.5rem;
}

.approval-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.approval-info {
    flex: 1;
}

.approval-name {
    font-weight: 600;
    color: var(--dark-color);
}

.approval-email {
    font-size: 0.9rem;
    color: var(--text-light);
}

.approve-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.approve-btn:hover {
    background: #4CAF50;
    transform: translateY(-1px);
}

/* Page Header */
.page-header {
    position: relative;
    text-align: center;
    margin-bottom: 0rem;
}



/* Page Content */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}







/* Header Container */
.header-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    min-height: 60px;
}

.header-content {
    text-align: center;
    padding: 1rem 0;
    position: relative;
    z-index: 1;
}

/* Login button styles */
.login {
    position: absolute;
    left: 20px;
    top: 0; /* Changed from 50% to position at top */
    z-index: 100; /* Higher than header-content */
    transform: none; /* Remove translateY since we're not centering vertically anymore */
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.login-btn:hover {
    background-color: var(--primary-dark);
}

.login-btn i {
    font-size: 0.85rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.back-btn:hover {
    background-color: var(--primary-dark);
}

.back-btn i {
    font-size: 0.85rem;
}

/* Language selector — relative anchor for its dropdown */
.lang-selector {
    position: relative;
    z-index: 100;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.8rem;
    transition: transform 0.2s ease;
    outline: none;
    line-height: 1;
}

.lang-btn:hover {
    transform: scale(1.1);
}

.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.9375rem rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 8.75rem;
    display: none;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.lang-selector.active .lang-menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.9375rem;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.lang-option:hover {
    background-color: #f8f8f8;
}

.lang-option span {
    margin-left: 0.625rem;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-0.625rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .login {
        left: 15px;
    }
    
    .lang-btn {
        font-size: 1.6rem;
    }
    
    .login-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .login-btn i {
        font-size: 0.8rem;
    }
    
    .back-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .back-btn i {
        font-size: 0.8rem;
    }
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

.payment-method-card {
    position: relative;
    display: block;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    padding-right: 55px; /* Add space for checkmark */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    min-height: 78px; /* Ensure consistent height */
}

.payment-method-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.15);
}

.payment-method-card:has(input:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFEF9 100%);
    box-shadow: 0 0 0 3px rgba(255, 167, 38, 0.12);
}

.payment-method-content {
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start for better alignment */
    gap: 15px;
    height: 100%;
}

.payment-method-icon {
    width: 44px;
    height: 44px;
    background: #FFF8E1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.payment-method-card:has(input:checked) .payment-method-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.payment-method-info {
    flex: 1;
    max-width: calc(100% - 100px); /* Prevent text overflow - account for icon and checkmark */
    padding-top: 2px; /* Slight padding to align with icon center */
}

.payment-method-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allow badge to wrap if needed */
    gap: 8px;
    line-height: 1.3;
}

.payment-method-description {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}

.recommended-badge {
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.payment-method-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-checkmark {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.payment-method-card:has(input:checked) .payment-method-checkmark {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.payment-method-checkmark::after {
    content: '✓';
    color: white;
    font-size: 13px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.payment-method-card:has(input:checked) .payment-method-checkmark::after {
    opacity: 1;
    transform: scale(1) rotate(0);
}

/* Add subtle animation on selection */
@keyframes selectPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 167, 38, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 167, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 167, 38, 0);
    }
}

.payment-method-card:has(input:checked) {
    animation: selectPulse 0.5s ease-out;
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .payment-methods {
        gap: 10px;
    }
    
    .payment-method-card {
        padding: 15px;
        padding-right: 50px; /* Maintain space for checkmark */
        min-height: 70px;
    }
    
    .payment-method-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .payment-method-label {
        font-size: 1rem;
    }
    
    .payment-method-description {
        font-size: 0.85rem;
    }
    
    .payment-method-info {
        max-width: calc(100% - 90px); /* Adjust for mobile */
    }
}

/* Optional: Two-column layout on larger screens */
@media (min-width: 768px) {
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Add subtle animation on selection */
@keyframes selectPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 167, 38, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 167, 38, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 167, 38, 0);
    }
}

.payment-method-card:has(input:checked) {
    animation: selectPulse 0.5s ease-out;
}

/* Mobile optimizations */
@media (max-width: 600px) {
    .payment-methods {
        gap: 10px;
    }
    
    .payment-method-card {
        padding: 15px;
    }
    
    .payment-method-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .payment-method-label {
        font-size: 1rem;
    }
    
    .payment-method-description {
        font-size: 0.85rem;
    }
}

/* Optional: Two-column layout on larger screens */
@media (min-width: 768px) {
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Fallback for browsers without :has() support */
@supports not selector(:has(*)) {
    .payment-method-radio:checked ~ .payment-method-content .payment-method-icon {
        background: var(--primary-color);
        color: white;
        transform: scale(1.05);
    }
    
    .payment-method-radio:checked ~ .payment-method-checkmark {
        border-color: var(--primary-color);
        background: var(--primary-color);
    }
    
    .payment-method-radio:checked ~ .payment-method-checkmark::after {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

/* ============================================================
   LANDING PAGE — landing CTA + location section
   ============================================================ */

.landing-cta {
    box-sizing: border-box;
    margin-top: 18px;
    text-decoration: none;
    gap: 10px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: var(--dark-color);
    margin: 28px 0 12px;
    font-weight: 600;
}
.section-heading i { color: var(--primary-color); font-size: 1.15rem; }

.location-section {
    margin-bottom: 28px;
    animation: fadeInUp var(--animation-duration) var(--animation-easing) 0.1s both;
}
.location-grid {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.location-info {
    padding: 16px 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}
@media (max-width: 480px) {
    .location-info { grid-template-columns: 1fr; }
}
.location-map { min-height: 280px; background: #f0f0f0; }
.location-map iframe { width: 100%; height: 100%; min-height: 280px; display: block; }

.info-block { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.info-block-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255, 167, 38, 0.12);
    color: var(--primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}
.info-block-body { flex: 1; min-width: 0; line-height: 1.3; }
.info-block-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 1px;
}
.info-block-value { color: var(--dark-color); }
.info-block-value a { color: var(--primary-dark); text-decoration: none; }
.info-block-value a:hover { text-decoration: underline; }

/* ============================================================
   PHONE INPUT — locked +421 prefix wrapper (no input sizing)
   ============================================================ */

.phone-input-row {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
/* override the project default of width:80% on text inputs so the name
   field aligns with the full-width phone-input-row */
.input-group .input-wrapper > input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}
.phone-input-row:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255,167,38,0.18);
}
.phone-input-row.is-invalid {
    border-color: #d33;
    box-shadow: 0 0 0 3px rgba(220,50,50,0.15);
}
.phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: var(--light-color);
    color: var(--text-light);
    font-weight: 600;
    border-right: 1px solid var(--border-color);
    user-select: none;
    font-variant-numeric: tabular-nums;
}
.phone-input-row > input {
    flex: 1;
    min-width: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    padding: 12px 14px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

/* pickup-info lines on order summary page */
.pickup-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
    color: var(--dark-color);
}
.pickup-line i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}
.pickup-line a { color: var(--primary-dark); text-decoration: none; }
.pickup-line a:hover { text-decoration: underline; }

/* ============================================================
   GOOGLE OAUTH — sign-in button + signed-in state
   ============================================================ */

.google-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, background 0.2s;
}
.google-signin-btn:hover {
    background: #f7fafc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    text-decoration: none;
}
.google-signin-btn .google-g {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        #4285F4 0 90deg,
        #34A853 90deg 180deg,
        #FBBC05 180deg 270deg,
        #EA4335 270deg 360deg);
    color: #fff;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: inset 0 0 0 6px #fff;
}
.google-signin-btn .google-g::after {
    content: 'G';
    color: #4285F4;
}
.google-signin-hint {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.oauth-prompt {
    text-align: center;
    margin: 4px 0 22px;
}

.signed-in-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(180deg, #fff8ec 0%, #fdf6e3 100%);
    border: 1px solid #ecd9a5;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}
.signed-in-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.signed-in-icon {
    color: var(--secondary-color);
    font-size: 1.4rem;
}
.signed-in-name { font-weight: 600; color: var(--dark-color); }
.signed-in-email { font-size: 0.85rem; color: var(--text-light); overflow-wrap: anywhere; }
.signed-in-logout {
    flex-shrink: 0;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.signed-in-logout:hover { background: #fff; color: var(--dark-color); }

/* ============================================================
   MY ORDERS — customer reservations dashboard
   ============================================================ */

.orders-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.orders-list .order-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 14px 18px;
}
.order-card.status-cancelled { opacity: 0.65; }

.order-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.order-card-main { margin: 8px 0; }
.order-egg-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}
.order-egg-label {
    margin-left: 6px;
    color: var(--text-light);
}
.order-total {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.15rem;
}
.order-date {
    font-size: 0.9rem;
    color: var(--text-light);
}
.order-vs {
    font-size: 0.85rem;
    color: var(--text-light);
    font-variant-numeric: tabular-nums;
}
.order-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.order-action-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
}
.order-action-link:hover { text-decoration: underline; }
.order-cancel-form { display: inline; margin: 0; }
.order-cancel-btn {
    background: transparent;
    border: 1px solid #d33;
    color: #d33;
    border-radius: var(--radius-sm);
    padding: 4px 10px;
    font-size: 0.85rem;
    cursor: pointer;
}
.order-cancel-btn:hover { background: #fff5f5; }

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 500;
}
.order-status-active    { background: #e3f0ff; color: #0b5394; }
.order-status-fulfilled { background: #e6f5ea; color: #1b5e20; }
.order-status-cancelled { background: #f5e6e6; color: #8a1a1a; }

.empty-orders {
    text-align: center;
    padding: 28px 16px;
    color: var(--text-light);
}
.empty-orders-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 10px;
}

/* link to "My reservations" inside the signed-in card */
.signed-in-orders-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 10px;
}
.signed-in-orders-link:hover { text-decoration: underline; }

.my-orders-link-wrapper { text-align: center; margin: 14px 0 0; }
.signed-in-actions { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* ============================================================
   HEADER USER MENU — sign-in icon / signed-in dropdown
   ============================================================ */

.header-user {
    position: relative;
    z-index: 100;
}

.user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--dark-color);
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s, border-color 0.2s;
}
.user-btn:hover { background: #faf6ec; }
.user-btn .fa-user-circle { color: var(--primary-color); font-size: 1.1rem; }
.user-btn .user-btn-caret { font-size: 0.7rem; opacity: 0.5; transition: transform 0.2s; }
.header-user.active .user-btn-caret { transform: rotate(180deg); }
.user-btn-name { font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn-signin {
    width: 40px; height: 40px;
    padding: 0;
    justify-content: center;
}
.user-btn-signin i { color: var(--primary-color); font-size: 1.05rem; }

.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
}
.header-user.active .user-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.user-menu-header {
    padding: 8px 16px 12px;
    border-bottom: 1px solid var(--border-color);
}
.user-menu-name { font-weight: 600; color: var(--dark-color); }
.user-menu-email { font-size: 0.82rem; color: var(--text-light); overflow-wrap: anywhere; }
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.95rem;
}
.user-menu-item:hover { background: #faf6ec; }
.user-menu-item i { width: 16px; color: var(--primary-color); text-align: center; }
.user-menu-item.user-menu-danger { color: #b22; }
.user-menu-item.user-menu-danger i { color: #b22; }

@media (max-width: 480px) {
    .user-btn-name { display: none; }
}

/* ============================================================
   NAVBAR — unified top bar shared across all pages
   left: home/back   center: lang   right: user/sign-in
   ============================================================ */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
    padding: 12px 16px;
    position: relative;
    z-index: 50;
}
.navbar-left,
.navbar-right {
    flex: 1 1 0;              /* equal share of remaining space — keeps centre truly centred */
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 44px;
}
.navbar-right { justify-content: flex-end; }
.navbar-center {
    flex: 0 0 auto;           /* sized only by its content (the lang button) */
    display: flex;
    justify-content: center;
}

/* Generic icon button used by the home / back / sign-in slots */
.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--dark-color);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s;
}
.nav-icon-btn:hover { background: #faf6ec; text-decoration: none; }
.nav-icon-btn i { color: var(--primary-color); }
.nav-icon-btn-label { font-size: 0.95rem; }

@media (max-width: 480px) {
    .nav-icon-btn-label { display: none; }
    .navbar { padding: 10px 12px; }
}

.signed-in-phone {
    margin-top: 4px;
    font-size: 0.88rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}
.signed-in-phone i { color: var(--primary-color); font-size: 0.8rem; }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    padding: 16px 18px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    animation: fadeInUp 0.3s ease both;
}
/* honour the [hidden] attribute even though display:flex would override it */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-text {
    flex: 1 1 240px;
    font-size: 0.92rem;
    color: var(--dark-color);
    line-height: 1.4;
}
.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cookie-btn {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
}
.cookie-btn-decline:hover { background: #faf6ec; }
.cookie-btn-accept {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.cookie-btn-accept:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

@media (max-width: 480px) {
    .cookie-banner { flex-direction: column; align-items: stretch; }
    .cookie-banner-actions { justify-content: flex-end; }
}

/* ============================================================
   SITE FOOTER + PRIVACY DOCUMENT
   ============================================================ */

.site-footer {
    max-width: 800px;
    margin: 32px auto 24px;
    padding: 16px 20px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.5;
}
.site-footer a {
    color: var(--primary-dark);
    text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
.site-footer-sep { margin: 0 6px; opacity: 0.5; }

.privacy-doc h2 {
    font-size: 1.15rem;
    color: var(--dark-color);
    margin: 22px 0 10px;
    font-weight: 600;
}
.privacy-doc h2:first-child { margin-top: 0; }
.privacy-doc p {
    margin: 0 0 12px;
    color: var(--text-color);
    line-height: 1.55;
}
.privacy-doc a {
    color: var(--primary-dark);
}

/* honeypot input — visually hidden but still in the DOM for bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* contact form textarea */
.input-wrapper textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
}
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 167, 38, 0.2);
}

.site-footer-note {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-light);
}

/* cookie consent — current state indicator + active button highlight */
.cookie-status {
    margin-bottom: 8px;
    font-size: 0.88rem;
}
#cookieStatusValue {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--light-color);
    color: var(--text-light);
    font-weight: 500;
}
#cookieStatusValue.is-yes { background: #e6f5ea; color: #1b5e20; }
#cookieStatusValue.is-no  { background: #f5e6e6; color: #8a1a1a; }

.cookie-btn.is-active {
    box-shadow: 0 0 0 2px var(--primary-color);
    position: relative;
}
.cookie-btn.is-active::before {
    content: "✓ ";
}

/* "or" divider between OAuth button and manual contact fields */
.oauth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 12px;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.oauth-divider::before,
.oauth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}
.oauth-divider span { white-space: nowrap; }
