/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #2c3e50;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Professional Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}

/* Container */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.logo i {
    font-size: 2.5rem;
    color: #4CAF50;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3));
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.portal-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.portal-title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 3px;
}

.year {
    font-size: 1.2rem;
    color: #4CAF50;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    background: rgba(76, 175, 80, 0.1);
}

/* Form Container */
.form-container {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #1e3c72);
    border-radius: 15px 15px 0 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label i {
    color: #2a5298;
    font-size: 1rem;
}

.required {
    color: #e74c3c;
    font-weight: 700;
    margin-left: 0.2rem;
}

/* Input Container */
.input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.2rem;
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    color: #2c3e50;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #95a5a6;
}

.form-input:focus {
    outline: none;
    border-color: #2a5298;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.form-input:hover {
    border-color: #2a5298;
    background: #ffffff;
}

/* Icons */
.dropdown-icon,
.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus + .dropdown-icon,
.form-input:focus ~ .input-icon {
    color: #2a5298;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #2a5298;
    border-radius: 8px;
    margin-top: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0.875rem 1.2rem;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #2a5298;
    padding-left: 1.5rem;
}

/* Date Group */
.date-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Flatpickr Custom Styles */
.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid #2a5298 !important;
}

.flatpickr-day.selected {
    background: #2a5298 !important;
    border-color: #2a5298 !important;
}

.flatpickr-day.today {
    border-color: #4CAF50 !important;
}

.flatpickr-day:hover {
    background: #e8ecf1 !important;
    border-color: #2a5298 !important;
}

@media (max-width: 768px) {
    .date-group {
        grid-template-columns: 1fr;
    }
}

/* Products Section */
.products-group {
    margin-top: 1rem;
}

/* Prevent any green glow around the product selector when an option is selected */
.products-group:has(input[type="checkbox"]:checked) {
    box-shadow: none !important;
    outline: none !important;
}

.product-label:focus,
.product-label:active {
    box-shadow: none !important;
    outline: none !important;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* ASPARAGUS SIZES Section */
.asparagus-sizes-group {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5ec 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    animation: slideInDown 0.4s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15);
}

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

.asparagus-sizes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .asparagus-sizes-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.asparagus-column {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.asparagus-column:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
    transform: translateY(-2px);
}

.asparagus-column-title {
    color: #2a5298;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e0e6ed;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asparagus-item {
    margin-bottom: 0.75rem;
}

.asparagus-item:last-child {
    margin-bottom: 0;
}

.asparagus-item input[type="checkbox"] {
    display: none;
}

.asparagus-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.asparagus-label:hover {
    background: #ffffff;
    border-color: #4CAF50;
    transform: translateX(3px);
}

/* Simplified ASPARAGUS Checkboxes */
.asparagus-item input[type="checkbox"]:checked + .asparagus-label,
.asparagus-item input[type="checkbox"]:checked + .asparagus-label .checkbox-custom {
    background: #4CAF50 !important;
    border-color: #4CAF50 !important;
    color: #ffffff !important;
}

.asparagus-item input[type="checkbox"]:checked + .asparagus-label .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
}

.asparagus-name {
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* All asparagus field styles removed - clean slate */

/* All asparagus size group styles removed */

/* All animations removed */

/* All remaining asparagus field styles removed */

/* Quantity input styles removed - clean slate */

/* BLUEBERRIES SIZES Section */
.blueberries-sizes-group {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
    border: 2px solid #2196F3;
    border-radius: 12px;
    animation: slideInDown 0.4s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.15);
}

.blueberries-sizes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.blueberries-column {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blueberries-column:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
    transform: translateY(-2px);
}

.blueberries-column-title {
    color: #2a5298;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e0e6ed;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blueberries-item {
    margin-bottom: 0.75rem;
}

.blueberries-item:last-child {
    margin-bottom: 0;
}

.blueberries-item input[type="checkbox"] {
    display: none;
}

.blueberries-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blueberries-label:hover {
    background: #ffffff;
    border-color: #2196F3;
    transform: translateX(3px);
}

/* Simplified BLUEBERRIES Checkboxes */
.blueberries-item input[type="checkbox"]:checked + .blueberries-label,
.blueberries-item input[type="checkbox"]:checked + .blueberries-label .checkbox-custom {
    background: #2196F3 !important;
    border-color: #2196F3 !important;
    color: #ffffff !important;
}

.blueberries-item input[type="checkbox"]:checked + .blueberries-label .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
}

.blueberries-name {
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* BLACKBERRIES SIZES Section */
.blackberries-sizes-group {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 2px solid #9c27b0;
    border-radius: 12px;
    animation: slideInDown 0.4s ease;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.15);
}

.blackberries-sizes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.blackberries-column {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blackberries-column:hover {
    border-color: #9c27b0;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.15);
    transform: translateY(-2px);
}

.blackberries-column-title {
    color: #2a5298;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e0e6ed;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blackberries-item {
    margin-bottom: 0.75rem;
}

.blackberries-item:last-child {
    margin-bottom: 0;
}

.blackberries-item input[type="checkbox"] {
    display: none;
}

.blackberries-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blackberries-label:hover {
    background: #ffffff;
    border-color: #9c27b0;
    transform: translateX(3px);
}

/* Simplified BLACKBERRIES Checkboxes */
.blackberries-item input[type="checkbox"]:checked + .blackberries-label,
.blackberries-item input[type="checkbox"]:checked + .blackberries-label .checkbox-custom {
    background: #9c27b0 !important;
    border-color: #9c27b0 !important;
    color: #ffffff !important;
}

.blackberries-item input[type="checkbox"]:checked + .blackberries-label .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
}

.blackberries-name {
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* RASPBERRIES SIZES Section */
.raspberries-sizes-group {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border: 2px solid #e91e63;
    border-radius: 12px;
    animation: slideInDown 0.4s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.15);
}

.raspberries-sizes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.raspberries-column {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.raspberries-column:hover {
    border-color: #e91e63;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
    transform: translateY(-2px);
}

.raspberries-column-title {
    color: #2a5298;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e0e6ed;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.raspberries-item {
    margin-bottom: 0.75rem;
}

.raspberries-item:last-child {
    margin-bottom: 0;
}

.raspberries-item input[type="checkbox"] {
    display: none;
}

.raspberries-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.raspberries-label:hover {
    background: #ffffff;
    border-color: #e91e63;
    transform: translateX(3px);
}

/* Simplified RASPBERRIES Checkboxes */
.raspberries-item input[type="checkbox"]:checked + .raspberries-label,
.raspberries-item input[type="checkbox"]:checked + .raspberries-label .checkbox-custom {
    background: #e91e63 !important;
    border-color: #e91e63 !important;
    color: #ffffff !important;
}

.raspberries-item input[type="checkbox"]:checked + .raspberries-label .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
}

.raspberries-name {
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* STRAWBERRIES SIZES Section */
.strawberries-sizes-group {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ffe0e0 0%, #ffb3b3 100%);
    border: 2px solid #ff6b6b;
    border-radius: 12px;
    animation: slideInDown 0.4s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.15);
}

.strawberries-sizes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.strawberries-column {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.strawberries-column:hover {
    border-color: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.15);
    transform: translateY(-2px);
}

.strawberries-column-title {
    color: #2a5298;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e0e6ed;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strawberries-item {
    margin-bottom: 0.75rem;
}

.strawberries-item:last-child {
    margin-bottom: 0;
}

.strawberries-item input[type="checkbox"] {
    display: none;
}

.strawberries-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.strawberries-label:hover {
    background: #ffffff;
    border-color: #ff6b6b;
    transform: translateX(3px);
}

/* Simplified STRAWBERRIES Checkboxes */
.strawberries-item input[type="checkbox"]:checked + .strawberries-label,
.strawberries-item input[type="checkbox"]:checked + .strawberries-label .checkbox-custom {
    background: #ff6b6b !important;
    border-color: #ff6b6b !important;
    color: #ffffff !important;
}

.strawberries-item input[type="checkbox"]:checked + .strawberries-label .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
}

.strawberries-name {
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Dynamic Fields Container - Styled to match packsizes */
.dynamic-fields-container {
    margin-top: 1px;
    position: relative;
    z-index: 10;
    overflow: visible;
    animation: slideInDown 0.3s ease;
}

/* Add extra spacing before Notes when it follows the quantity box */
.dynamic-fields-container + .form-group {
    margin-top: 2rem;
}

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

/* ASPARAGUS Quantity Box - Match packsizes styling */
.asparagus-sizes-group + .dynamic-fields-container,
#dynamicAsparagusFields {
    background: linear-gradient(135deg, #f0f9f4 0%, #e8f5ec 100%) !important;
    border: 2px solid #4CAF50 !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-top: 1px !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15) !important;
    animation: slideInDown 0.3s ease !important;
}

/* Hide ASPARAGUS quantity box by default - but allow JavaScript to override */
#dynamicAsparagusFields {
    display: none;
}

/* Show ASPARAGUS quantity box when JavaScript sets it to block */
#dynamicAsparagusFields[style*="display: block"] {
    display: block !important;
}

/* ASPARAGUS Quantity Box Content Styling */
.asparagus-sizes-group + .dynamic-fields-container .asparagus-size-title,
#dynamicAsparagusFields .asparagus-size-title {
    color: #2c7a3f !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
    margin-top: 1.5rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Fix spacing for second and subsequent packsize titles */
.asparagus-sizes-group + .dynamic-fields-container .asparagus-size-group:not(:first-child) .asparagus-size-title {
    margin-top: 2rem;
}

.asparagus-sizes-group + .dynamic-fields-container .asparagus-field-label,
#dynamicAsparagusFields .asparagus-field-label {
    color: #2c7a3f !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    margin-bottom: 2.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.asparagus-sizes-group + .dynamic-fields-container .asparagus-field-input,
#dynamicAsparagusFields .asparagus-field-input {
    background: #ffffff !important;
    border: 2px solid #4CAF50 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    padding-top: 1rem !important;
    color: #2c3e50 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}

.asparagus-sizes-group + .dynamic-fields-container .asparagus-field-input:focus,
#dynamicAsparagusFields .asparagus-field-input:focus {
    outline: none !important;
    border-color: #2c7a3f !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1) !important;
    background: #ffffff !important;
}

/* ASPARAGUS SPEC Dropdown Styling - Make it uniform with QUANTITY */
.asparagus-sizes-group + .dynamic-fields-container .new-asparagus-input,
#dynamicAsparagusFields .new-asparagus-input {
    background: #ffffff !important;
    border: 2px solid #4CAF50 !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    padding-top: 1rem !important;
    color: #2c3e50 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.asparagus-sizes-group + .dynamic-fields-container .new-asparagus-input:focus,
#dynamicAsparagusFields .new-asparagus-input:focus {
    outline: none !important;
    border-color: #2c7a3f !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1) !important;
    background: #ffffff !important;
}

.asparagus-sizes-group + .dynamic-fields-container .new-asparagus-input::placeholder,
#dynamicAsparagusFields .new-asparagus-input::placeholder {
    color: #95a5a6 !important;
}

/* ASPARAGUS SPEC Label Styling */
.asparagus-sizes-group + .dynamic-fields-container .asparagus-field-label:has(.fa-list),
#dynamicAsparagusFields .asparagus-field-label:has(.fa-list) {
    color: #2c7a3f !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    margin-bottom: 2.5rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

/* ASPARAGUS Rows Container */
.asparagus-rows-container {
    margin-bottom: 1rem;
}

.asparagus-row-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(76, 175, 80, 0.15);
}

.asparagus-row-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.asparagus-fields-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    position: relative;
}

/* Botón para agregar más filas */
.add-asparagus-row-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.add-asparagus-row-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.add-asparagus-row-btn:active {
    transform: translateY(0);
}

.add-asparagus-row-btn i {
    font-size: 0.875rem;
}

/* Botón para eliminar fila */
.remove-asparagus-row-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.2);
}

.remove-asparagus-row-btn:hover {
    background: #c0392b;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    transform: scale(1.05);
}

.remove-asparagus-row-btn:active {
    transform: scale(0.95);
}

.remove-asparagus-row-btn i {
    font-size: 0.875rem;
}

/* Ajustar campos cuando hay botón de eliminar */
.asparagus-fields-row:has(.remove-asparagus-row-btn) .asparagus-field {
    flex: 1;
}

/* Responsive para filas múltiples */
@media (max-width: 768px) {
    .asparagus-fields-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .remove-asparagus-row-btn {
        align-self: flex-end;
        width: auto;
        padding: 0.5rem 1rem;
    }
    
    .add-asparagus-row-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ASPARAGUS SPEC Dropdown Menu Styling */
.asparagus-sizes-group + .dynamic-fields-container .new-dropdown-menu,
#dynamicAsparagusFields .new-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border: 2px solid #4CAF50 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15) !important;
    z-index: 1000 !important;
    display: none !important;
    margin-top: 2px !important;
}

/* Show dropdown when active */
.asparagus-sizes-group + .dynamic-fields-container .new-dropdown-menu.active,
#dynamicAsparagusFields .new-dropdown-menu.active {
    display: block !important;
}

.asparagus-sizes-group + .dynamic-fields-container .new-dropdown-item,
#dynamicAsparagusFields .new-dropdown-item {
    padding: 0.75rem 1rem !important;
    color: #2c3e50 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    border-bottom: 1px solid rgba(76, 175, 80, 0.1) !important;
}

.asparagus-sizes-group + .dynamic-fields-container .new-dropdown-item:hover,
#dynamicAsparagusFields .new-dropdown-item:hover {
    background: #f0f9f4 !important;
    color: #2c7a3f !important;
}

.asparagus-sizes-group + .dynamic-fields-container .new-dropdown-item:last-child,
#dynamicAsparagusFields .new-dropdown-item:last-child {
    border-bottom: none !important;
}

/* ASPARAGUS SPEC Dropdown Icon Styling */
.asparagus-sizes-group + .dynamic-fields-container .new-dropdown-icon,
#dynamicAsparagusFields .new-dropdown-icon {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #4CAF50 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    pointer-events: none !important;
}

.asparagus-sizes-group + .dynamic-fields-container .new-asparagus-input:focus + .new-dropdown-icon,
#dynamicAsparagusFields .new-asparagus-input:focus + .new-dropdown-icon {
    color: #2c7a3f !important;
    transform: translateY(-50%) rotate(180deg) !important;
}

/* ASPARAGUS SPEC Dropdown Container */
.asparagus-sizes-group + .dynamic-fields-container .new-asparagus-dropdown,
#dynamicAsparagusFields .new-asparagus-dropdown {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

/* BLUEBERRIES Quantity Box - Match packsizes styling */
.blueberries-sizes-group + .dynamic-fields-container {
    background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
    border: 2px solid #2196F3;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.15);
}

/* BLUEBERRIES Quantity Box Content Styling */
.blueberries-sizes-group + .dynamic-fields-container .asparagus-size-title {
    color: #1565c0;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(33, 150, 243, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fix spacing for second and subsequent packsize titles */
.blueberries-sizes-group + .dynamic-fields-container .asparagus-size-group:not(:first-child) .asparagus-size-title {
    margin-top: 2rem;
}

.blueberries-sizes-group + .dynamic-fields-container .asparagus-field-label {
    color: #1565c0;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2.5rem !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.blueberries-sizes-group + .dynamic-fields-container .asparagus-field-input {
    background: #ffffff;
    border: 2px solid #2196F3;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    padding-top: 1rem !important;
    color: #2c3e50;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: 100%;
}

.blueberries-sizes-group + .dynamic-fields-container .asparagus-field-input:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    background: #ffffff;
}

/* BLACKBERRIES Quantity Box - Match packsizes styling */
.blackberries-sizes-group + .dynamic-fields-container {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 2px solid #9c27b0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1px;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.15);
}

/* BLACKBERRIES Quantity Box Content Styling */
.blackberries-sizes-group + .dynamic-fields-container .asparagus-size-title {
    color: #6a1b9a;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(156, 39, 176, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fix spacing for second and subsequent packsize titles */
.blackberries-sizes-group + .dynamic-fields-container .asparagus-size-group:not(:first-child) .asparagus-size-title {
    margin-top: 2rem;
}

.blackberries-sizes-group + .dynamic-fields-container .asparagus-field-label {
    color: #6a1b9a;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2.5rem !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.blackberries-sizes-group + .dynamic-fields-container .asparagus-field-input {
    background: #ffffff;
    border: 2px solid #9c27b0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    padding-top: 1rem !important;
    color: #2c3e50;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: 100%;
}

.blackberries-sizes-group + .dynamic-fields-container .asparagus-field-input:focus {
    outline: none;
    border-color: #6a1b9a;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
    background: #ffffff;
}

/* RASPBERRIES Quantity Box - Match packsizes styling */
.raspberries-sizes-group + .dynamic-fields-container {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    border: 2px solid #e91e63;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.15);
}

/* RASPBERRIES Quantity Box Content Styling */
.raspberries-sizes-group + .dynamic-fields-container .asparagus-size-title {
    color: #c2185b;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(233, 30, 99, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fix spacing for second and subsequent packsize titles */
.raspberries-sizes-group + .dynamic-fields-container .asparagus-size-group:not(:first-child) .asparagus-size-title {
    margin-top: 2rem;
}

.raspberries-sizes-group + .dynamic-fields-container .asparagus-field-label {
    color: #c2185b;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2.5rem !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.raspberries-sizes-group + .dynamic-fields-container .asparagus-field-input {
    background: #ffffff;
    border: 2px solid #e91e63;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    padding-top: 1rem !important;
    color: #2c3e50;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: 100%;
}

.raspberries-sizes-group + .dynamic-fields-container .asparagus-field-input:focus {
    outline: none;
    border-color: #c2185b;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
    background: #ffffff;
}

/* STRAWBERRIES Quantity Box - Match packsizes styling */
.strawberries-sizes-group + .dynamic-fields-container {
    background: linear-gradient(135deg, #ffe0e0 0%, #ffb3b3 100%);
    border: 2px solid #ff6b6b;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.15);
}

/* STRAWBERRIES Quantity Box Content Styling */
.strawberries-sizes-group + .dynamic-fields-container .asparagus-size-title {
    color: #d63031;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Fix spacing for second and subsequent packsize titles */
.strawberries-sizes-group + .dynamic-fields-container .asparagus-size-group:not(:first-child) .asparagus-size-title {
    margin-top: 2rem;
}

.strawberries-sizes-group + .dynamic-fields-container .asparagus-field-label {
    color: #d63031;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2.5rem !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.strawberries-sizes-group + .dynamic-fields-container .asparagus-field-input {
    background: #ffffff;
    border: 2px solid #ff6b6b;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    padding-top: 1rem !important;
    color: #2c3e50;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    width: 100%;
}

.strawberries-sizes-group + .dynamic-fields-container .asparagus-field-input:focus {
    outline: none;
    border-color: #d63031;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    background: #ffffff;
}





/* All price field styles removed */

.price-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.dollar-sign {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4CAF50;
    font-weight: 700;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 15;
    transition: all 0.3s ease;
}

.price-input {
    width: 100%;
    padding-left: 2.8rem !important;
    padding-right: 1.2rem;
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    color: #2c3e50;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.price-input::placeholder {
    color: #95a5a6;
}

.price-input:focus {
    outline: none;
    border-color: #2a5298;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.price-input:hover {
    border-color: #2a5298;
    background: #ffffff;
}

.price-input:not(:placeholder-shown) + .dollar-sign,
.price-input:focus + .dollar-sign {
    color: #4CAF50;
    transform: translateY(-50%) scale(1.05);
}

/* All asparagus field note styles removed */

/* All new asparagus dropdown styles removed */

/* All remaining asparagus input styles removed */

/* All dropdown icon styles removed */

/* Vendor Dropdown with Search */
.vendor-dropdown {
    max-height: 300px;
    padding: 0;
    overflow: hidden;
}

/* Search Container */
.search-container {
    position: relative;
    padding: 1rem;
    border-bottom: 1px solid #e0e6ed;
    background: #f8f9fa;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #ffffff;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.search-icon-small {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.8rem;
}

/* Dropdown Content */
.dropdown-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

/* Search Icon in Input */
.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.input-container:focus-within .search-icon {
    color: #2196F3;
}

/* NEW Dropdown Menu */
.new-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #2a5298;
    border-radius: 8px;
    margin-top: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.new-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.new-dropdown-item {
    padding: 0.875rem 1.2rem;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    font-weight: 500;
    text-transform: uppercase;
}

.new-dropdown-item:first-child {
    border-top: none;
}

.new-dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 6px 6px;
}

.new-dropdown-item:hover {
    background: #f8f9fa;
    color: #2a5298;
    padding-left: 1.5rem;
}

.new-dropdown-item:active {
    background: #e8ecf1;
}

/* Custom scrollbar for dropdown */
.new-dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.new-dropdown-menu::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.new-dropdown-menu::-webkit-scrollbar-thumb {
    background: #2a5298;
    border-radius: 3px;
}

.new-dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #1e3c72;
}

.product-item {
    position: relative;
}

.product-item input[type="checkbox"] {
    display: none;
}

.product-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-label:hover {
    background: #ffffff;
    border-color: #2a5298;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.product-item input[type="checkbox"]:checked + .product-label .checkbox-custom {
    background: #2a5298;
    border-color: #2a5298;
}

.product-item input[type="checkbox"]:checked + .product-label .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: bold;
    font-size: 12px;
}

.product-item input[type="checkbox"]:checked + .product-label {
    background: #e8ecf1;
    border-color: #2a5298;
    color: #2a5298;
}

/* Disabled product items (mutual exclusion) */
.product-item input[type="checkbox"]:disabled + .product-label {
    cursor: not-allowed;
    opacity: 0.5;
}

.product-item input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

/* Remove any green highlight/border/glow when selecting a product */
.product-item input[type="checkbox"]:focus + .product-label,
.product-item input[type="checkbox"]:checked + .product-label {
    box-shadow: none !important;
    outline: none !important;
}

.product-name {
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quote Status Section */
.quote-status-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

/* Fix QUOTE STATUS background - ensure neutral colors */
.quote-status-container {
    background: #f8f9fa !important;
    border: 2px solid #e0e6ed !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    margin-top: 3rem !important;
}

.status-item {
    position: relative;
}

.status-item input[type="radio"] {
    display: none;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.status-label:hover {
    background: #ffffff;
    border-color: #2a5298;
    transform: translateY(-1px);
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.status-item input[type="radio"]:checked + .status-label .radio-custom {
    background: #2a5298;
    border-color: #2a5298;
}

.status-item input[type="radio"]:checked + .status-label .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
}

.status-item input[type="radio"]:checked + .status-label {
    background: #e8ecf1;
    border-color: #2a5298;
    color: #2a5298;
}

.status-name {
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Textarea Styles */
.form-textarea {
    width: 100%;
    padding: 0.875rem 1.2rem;
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    color: #2c3e50;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

.form-textarea::placeholder {
    color: #95a5a6;
}

.form-textarea:focus {
    outline: none;
    border-color: #2a5298;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

.form-textarea:hover {
    border-color: #2a5298;
    background: #ffffff;
}

/* Submit Button */
.submit-container {
    margin-top: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-top: 1rem;
}

.submit-btn {
    position: relative;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 82, 152, 0.4);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

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

.submit-btn i {
    margin-right: 0.5rem;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover .btn-glow {
    left: 100%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #ffffff;
    border: 2px solid #2a5298;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: slideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-header {
    margin-bottom: 1.5rem;
}

.success-icon {
    font-size: 3rem;
    color: #4CAF50;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.modal-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.modal-body p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.submission-id {
    background: #f8f9fa;
    border: 1px solid #e0e6ed;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.submission-id span {
    color: #2a5298;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.modal-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    border: none;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .portal-title h2 {
        font-size: 1.4rem;
    }
    
    .products-container {
        grid-template-columns: 1fr;
    }
    
    .submit-btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
    
    /* Stack all size containers in mobile */
    .blueberries-sizes-container,
    .blackberries-sizes-container,
    .raspberries-sizes-container,
    .strawberries-sizes-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Mobile Small Devices (phones) */
@media (max-width: 600px) {
    .container {
        padding: 0.75rem;
    }
    
    .header {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
        border-radius: 10px;
    }
    
    .logo {
        gap: 0.75rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .logo h1 {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }
    
    .portal-title {
        gap: 0.5rem;
    }
    
    .portal-title h2 {
        font-size: 1.2rem;
    }
    
    .portal-title .year {
        font-size: 0.9rem;
        padding: 0.25rem 0.75rem;
    }
    
    .form-container {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .form-label {
        font-size: 0.875rem;
    }
    
    .form-input {
        font-size: 0.9375rem;
        padding: 0.75rem;
    }
    
    .date-group {
        gap: 1rem;
    }
    
    /* Products - make full width on mobile */
    .products-container {
        gap: 0.75rem;
    }
    
    .product-label {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Size containers - stack vertically */
    .asparagus-sizes-container,
    .blueberries-sizes-container,
    .blackberries-sizes-container,
    .raspberries-sizes-container,
    .strawberries-sizes-container {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        margin-top: 1rem !important;
    }
    
    .asparagus-column,
    .blueberries-column,
    .blackberries-column,
    .raspberries-column,
    .strawberries-column {
        padding: 1rem !important;
    }
    
    .asparagus-column-title,
    .blueberries-column-title,
    .blackberries-column-title,
    .raspberries-column-title,
    .strawberries-column-title {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .asparagus-size-label,
    .blueberries-size-label,
    .blackberries-size-label,
    .raspberries-size-label,
    .strawberries-size-label {
        padding: 0.875rem 0.75rem !important;
        font-size: 0.875rem !important;
        min-height: 48px; /* Touch target size */
    }
    
    .asparagus-size-label input[type="checkbox"],
    .blueberries-size-label input[type="checkbox"],
    .blackberries-size-label input[type="checkbox"],
    .raspberries-size-label input[type="checkbox"],
    .strawberries-size-label input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
    }
    
    /* Dynamic fields */
    .dynamic-fields-container {
        margin-top: 1rem !important;
    }
    
    .asparagus-size-group,
    .blueberries-size-group,
    .blackberries-size-group,
    .raspberries-size-group,
    .strawberries-size-group {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .size-group-label {
        font-size: 0.875rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .size-input-group {
        margin-bottom: 0.75rem !important;
    }
    
    .size-input-group label {
        font-size: 0.8125rem !important;
    }
    
    .size-input-group input {
        font-size: 0.9375rem !important;
        padding: 0.75rem !important;
        min-height: 44px; /* Touch target */
    }
    
    /* Notes section */
    .form-group textarea {
        font-size: 0.9375rem !important;
        padding: 0.75rem !important;
        min-height: 120px !important;
    }
    
    /* Submit button */
    .submit-btn {
        width: 100% !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 48px; /* Touch target */
    }
    
    /* Dropdowns */
    .dropdown-menu {
        max-height: 300px !important;
    }
    
    .dropdown-item {
        padding: 0.875rem 1rem !important;
        font-size: 0.9375rem !important;
        min-height: 44px; /* Touch target */
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .header {
        padding: 1.25rem 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .portal-title h2 {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 0.75rem;
    }
    
    .form-label {
        font-size: 0.8125rem;
    }
    
    .form-input {
        font-size: 0.875rem;
        padding: 0.625rem;
    }
    
    .asparagus-size-label,
    .blueberries-size-label,
    .blackberries-size-label,
    .raspberries-size-label,
    .strawberries-size-label {
        padding: 0.75rem 0.625rem !important;
        font-size: 0.8125rem !important;
    }
    
    .submit-btn {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9375rem !important;
    }
}

/* Loading Animation */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
