:root {
    --primary-color: #4285f4;
    --hover-color: #3071e7;
    --border-color: #bbbbbb; /* Darker light gray for borders */
    --text-color: #555;
    --field-bg: #e0e0e0; /* Light gray background for fields */
}

#custom-perfume-form {
    max-width: 900px;
    margin: 20px auto;
    background: #fff !important; /* Pure white for contrast */
    border: 1.5px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

#progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    margin: 20px auto;
    max-width: 900px;
}

#progress-text { font-size: 18px; font-weight: bold; }
#live-price { font-size: 16px; }

.step-msg {
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
    margin: 5px 0 15px;
}

.form-step { display: none; animation: fadeIn 0.4s ease; }
.form-step.active { display: block; }
.form-step h2 { text-align: center; color: #333; }

label { display: block; margin: 15px 0 5px; font-weight: bold; color: var(--text-color); }

input[type="text"], input[type="file"], input[type="tel"], input[type="email"], textarea, select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 4px;
    background-color: var(--field-bg) !important; /* Ensure light gray background */
    color: var(--text-color);
    transition: border 0.3s, background-color 0.3s;
}

input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
    border-color: var(--primary-color) !important;
    background-color: #fff !important; /* White on focus for clarity */
    outline: none;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    background: #ddd;
    border-radius: 6px;
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.3); }
textarea { resize: vertical; min-height: 60px; }

.nav-buttons { text-align: center; margin-top: 20px; }
button {
    padding: 12px 26px;
    margin: 12px 6px 0 6px;
    border: none;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

button:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.perfume-section {
    border: 1.5px solid var(--border-color);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.perfume-section h3 {
    font-size: 15px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.bottle-sizes-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.bottle-size-column { flex: 1 1 45%; }

.bottle-option-container {
    margin-bottom: 15px;
    text-align: center;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bottle-option-container img {
    display: block;
    margin: 5px auto;
    max-width: 90px;
    height: auto;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
}

.bottle-option-container img.sixty-ml {
    max-width: 90px;
}

.bottle-option-container img:hover { transform: scale(1.1); }

.hundredml-options {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.hundredml-option {
    flex: 1;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    padding: 5px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hundredml-option img {
    max-width: 90px;
    margin: 5px auto;
    display: block;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
}

.hundredml-option img:hover { transform: scale(1.1); }

.box-options-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.box-option {
    flex: 1;
    text-align: center;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.box-option img {
    max-width: 180px;
    margin: 5px auto;
    display: block;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
}

.box-option img:hover { transform: scale(1.1); }

/* New styles for side-by-side design options */
.bottle-design-options {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 10px;
}

.bottle-design-options label {
    flex: 1;
    margin: 0;
    padding: 10px;
    border: 1.5px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--field-bg);
    transition: background-color 0.3s;
}

.bottle-design-options label:hover {
    background-color: #d0d0d0;
}

.bottle-design-options input[type="radio"] {
    margin-right: 10px;
}

/* Style for Select2 dropdown */
.select2-container .select2-selection--single {
    height: 40px;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 4px;
    background-color: var(--field-bg) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
    color: var(--text-color);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.select2-container .select2-selection--single:focus {
    border-color: var(--primary-color) !important;
    background-color: #fff !important;
}

@media (max-width: 600px) {
    #progress-bar { flex-direction: column; text-align: center; }
    .bottle-sizes-container, .box-options-container { flex-direction: column; }
    .bottle-size-column, .hundredml-option { width: 100%; }
    .hundredml-options { flex-direction: row; }
    .bottle-design-options { flex-direction: column; gap: 10px; }
}

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