/* -------------------- Global Reset & Base -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter Tight', Arial, Helvetica, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.15);
}

/* -------------------- Headings -------------------- */
h2, h3 {
    font-weight: 600;
    margin-bottom: 16px;
    color: #101e15;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.3rem;
}

/* -------------------- Glassmorphic Container -------------------- */
.container {
    background-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px;
    border-radius: 16px;
    max-width: 640px;
    margin: 40px auto;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    color: #000; /* Ensure text inside container is black */
}

/* -------------------- Search Bar -------------------- */
.search-bar {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

.search-bar input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: rgba(255,255,255,0.8);
    color: #000;
}

.search-bar input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* -------------------- Results Dropdown -------------------- */
.results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    max-height: 260px;
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    z-index: 10;
    transition: all 0.3s ease;
    color: #000;
}

.result-item {
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.result-item:hover {
    background-color: rgba(0,0,0,0.1);
    color: #1e40af;
}

/* -------------------- Service & Product Cards -------------------- */
.service-details,
.product-options,
#userDetails {
    margin-top: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(200,200,200,0.3);
    border-radius: 14px;
    transition: all 0.2s ease;
    color: #000;
}

.service-details p,
.product-options p {
    margin-bottom: 12px;
}

/* -------------------- Radio Buttons -------------------- */
.radio-group label {
    display: flex;             /* align input and text horizontally */
    align-items: center;
    gap: 10px;                 /* space between radio and text */
    padding: 14px 16px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(200,200,200,0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #000;
}

.radio-group input {
    margin: 0;
}

/* -------------------- Hover Effects for Radios -------------------- */
.radio-group label:hover {
    border-color: #2563eb;
    background-color: rgba(237,246,255,0.6);
}

/* -------------------- Terms & Conditions Checkbox -------------------- */
.terms-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.terms-container input[type="checkbox"] {
    display: inline-block;
    margin: 0;
}

.terms-container label {
    display: inline-block;
    vertical-align: middle;
    font-weight: 500;
    color: #000;
}

/* -------------------- Term Toggle -------------------- */
.term-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    font-weight: 600;
    color: #000;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.25s;
    border-radius: 999px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background-color: white;
    transition: 0.25s;
    border-radius: 999px;
}

input:checked + .slider {
    background-color: #2563eb;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* -------------------- Buttons -------------------- */
button, input[type="submit"], #showProducts, #exitBtn, #contactBtn {
    display: inline-block;
    padding: 14px 22px;
    background-color: #2563eb;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover, input[type="submit"]:hover, #showProducts:hover {
    background-color: #1e40af;
    transform: translateY(-1px);
}

button:active, input[type="submit"]:active {
    transform: scale(0.98);
}

#userDetails button {
    background-color: #10b981;
}

#userDetails button:hover {
    background-color: #059669;
}

/* -------------------- Form Inputs -------------------- */
#userDetails input,
#userDetails select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    background-color: rgba(255,255,255,0.7);
    color: #000;
}

#userDetails input:focus,
#userDetails select:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 600px) {
    .container {
        padding: 24px;
    }
    .search-bar input {
        font-size: 14px;
    }
    .radio-group label {
        padding: 12px 14px;
    }
    button, input[type="submit"] {
        font-size: 14px;
        padding: 12px 18px;
    }
}
