:root {
    --primary-color: #d4af37;
    /* Gold */
    --secondary-color: #1a1a1a;
    /* Dark background */
    --accent-color: #2c3e50;
    /* Dark Blue */
    --text-color: #ffffff;
    --text-muted: #cccccc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.1);
    --success-color: #2ecc71;
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #2c3e50 0%, #1a1a1a 80%);
    z-index: -1;
}

header {
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    text-transform: uppercase;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

h1,
h2,
h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Fix for Select Dropdowns */
select {
    background-color: var(--secondary-color);
    /* Fallback */
    color: var(--text-color);
}

select option {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), #b8962e);
    border: none;
    border-radius: 8px;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 20px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.section-title {
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 25px;
    color: var(--text-color);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Radio Cards (Shipping) */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 120px;
}

.radio-option input[type="radio"],
.checkbox-option input[type="checkbox"] {
    display: none;
}

.radio-option label,
.checkbox-option label {
    display: block;
    text-align: center;
    padding: 15px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.radio-option input[type="radio"]:checked+label,
.checkbox-option input[type="checkbox"]:checked+label {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--glass-border);
}

.address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .address-grid {
        grid-template-columns: 1fr;
    }
}

/* --- New Styles for Phase 2/3 --- */

/* Pricing Cards */
.paint-options-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.paint-card {
    flex: 1;
    min-width: 200px;
    cursor: pointer;
    margin-bottom: 0;
    /* Override label default */
}

.paint-card input {
    display: none;
}

.paint-card .card-content {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.paint-card input:checked+.card-content {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    transform: scale(1.02);
}

.card-image {
    width: 100%;
    height: 150px;
    background-color: #333;
    /* Placeholder */
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #888;
}

.paint-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.paint-card .price {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 5px 0;
}

.paint-card .desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Swipe Gallery */
.gallery-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-container {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    width: 100%;
}

.gallery-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.gallery-item {
    min-width: 120px;
    cursor: pointer;
    margin-bottom: 0;
}

.gallery-item.small {
    min-width: 100px;
}

.gallery-item input {
    display: none;
}

.item-content {
    text-align: center;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.gallery-item input:checked+.item-content {
    opacity: 1;
    transform: scale(1.1);
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #444;
    /* Placeholder */
    margin: 0 auto 10px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.gallery-item input:checked+.item-content .item-image {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}