/* Kerstbomen Bestellingsformulier - Custom Styling */

:root {
    --primary-color: #1e5631;
    --secondary-color: #c41e3a;
    --accent-color: #f4d03f;
    --light-bg: #f8fdf9;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #d4edda;
    --shadow-sm: 0 2px 8px rgba(30, 86, 49, 0.08);
    --shadow-md: 0 4px 16px rgba(30, 86, 49, 0.12);
    --shadow-lg: 0 8px 24px rgba(30, 86, 49, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

/* Container en Card Styling */
.container {
    max-width: 900px;
}

.bg-white {
    background: var(--white) !important;
    border: 2px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
    border-radius: 16px !important;
}

/* Header Styling */
h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 1.5rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-bottom: 1rem;
}

h1::after {
    content: '🎄';
    display: block;
    font-size: 2rem;
    margin-top: 0.5rem;
}

h4 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    margin-top: 1.5rem;
    margin-bottom: 1.25rem !important;
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
}

h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

hr {
    border-color: var(--border-color) !important;
    opacity: 0.5;
    margin: 2rem 0 !important;
}

/* Product List Styling */
#producten-lijst {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

#producten-lijst > div {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

#producten-lijst > div:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

#producten-lijst > div:last-child {
    margin-bottom: 0;
}

/* Label Styling */
label.form-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
    margin: 0;
}

/* Input Styling */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 86, 49, 0.15);
}

.aantal-input {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px !important;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 40px;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Prijs Styling */
.prijs {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    min-width: 80px;
    display: inline-block;
}

.text-muted.small {
    color: var(--text-muted) !important;
    font-size: 0.875rem;
}

/* Donatie Sectie */
.mt-3.d-flex {
    background: var(--light-bg);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Totaal Styling */
.mt-3 strong {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: block;
    padding: 1.25rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    text-align: center;
}

#totaal {
    color: var(--secondary-color);
    font-size: 1.75rem;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #245c3a 100%);
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 1.5rem !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #245c3a 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Mobile Responsive Optimalisaties */
@media (max-width: 767.98px) {
    body {
        padding: 0.75rem !important;
    }

    .container {
        padding: 0;
        margin-top: 1rem !important;
    }

    .bg-white {
        padding: 1.25rem !important;
        border-radius: 12px !important;
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem !important;
    }

    h4 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
    }

    #producten-lijst {
        padding: 1rem;
    }

    #producten-lijst > div {
        padding: 0.875rem;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    label.form-label {
        margin-bottom: 0.5rem !important;
        width: 100%;
    }

    .aantal-input {
        width: 100% !important;
        max-width: 150px;
        margin-bottom: 0.5rem;
    }

    .prijs {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .text-muted.small {
        font-size: 0.8125rem;
    }

    .mt-3.d-flex {
        padding: 1rem;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .mt-3.d-flex input {
        width: 100% !important;
        max-width: 150px;
        margin-top: 0.5rem;
    }

    .mt-3 strong {
        font-size: 1.25rem;
        padding: 1rem;
    }

    #totaal {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    h1::after {
        font-size: 1.5rem;
    }

    hr {
        margin: 1.5rem 0 !important;
    }
}

/* Tablet Optimalisaties */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    #producten-lijst > div {
        gap: 1rem !important;
    }
}

/* Desktop Optimalisaties */
@media (min-width: 992px) {
    .bg-white {
        padding: 3rem !important;
    }

    #producten-lijst {
        padding: 2rem;
    }

    #producten-lijst > div {
        padding: 1.25rem;
    }
}

/* Print Styling */
@media print {
    body {
        background: white;
    }

    .btn-primary {
        display: none;
    }

    .bg-white {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}

/* Accessibility Improvements */
.form-control:focus-visible,
.btn-primary:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Loading State (optioneel) */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Text Selection Styling */
::selection {
    background: var(--accent-color);
    color: var(--text-dark);
}

::-moz-selection {
    background: var(--accent-color);
    color: var(--text-dark);
}
