.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive Main Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Radio Group: Default Flex (Desktop) */
.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-option {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
    flex: 1;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: var(--color-primary);
}

input[type="radio"]:checked+.radio-tile {
    color: var(--color-primary);
    font-weight: bold;
}

/* Hide actual radio */
input[type="radio"] {
    display: none;
}

input[type="radio"]:checked+label.radio-option {
    border-color: var(--color-primary);
    background: var(--color-accent-glow);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        /* Stack Sidebar below Main */
    }

    .radio-group {
        display: grid;
        /* Switch to Grid */
        grid-template-columns: 1fr 1fr;
        /* 2 Column Grid */
        gap: 0.5rem;
    }

    .radio-option {
        padding: 0.75rem;
        /* Smaller padding */
    }

    .service-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .service-card>div:last-child {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    /* Holistic Mobile Fixes */
    .c-card {
        padding: 1rem !important;
        /* Compact padding */
    }

    h3 {
        font-size: 1.2rem !important;
        /* Scale down headers */
    }

    #estimated-price {
        font-size: 1.5rem !important;
        /* Scale down cost display */
    }

    .dashboard-grid {
        /* Tablet Centering Fix */
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Mobile Specific Layout Adjustments */
.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {

    /* Stack Start Time & Duration */
    .form-row-split {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Compact Radio Options (Resource Tiers) */
    .radio-group {
        gap: 0.5rem !important;
    }

    .radio-option {
        padding: 0.5rem !important;
        /* Very compact */
        margin-bottom: 0 !important;
    }

    .radio-option div:first-child {
        font-size: 0.9rem !important;
        /* Smaller Tier Name */
        font-weight: 600;
    }

    .radio-option div:last-child {
        font-size: 0.7rem !important;
        /* Micro text for price */
    }

    /* Typography Scaling */
    h3 {
        font-size: clamp(1rem, 4vw, 1.2rem) !important;
        line-height: 1.2;
    }

    p,
    label,
    input,
    .c-input {
        font-size: 0.9rem !important;
    }

    /* Footer / Cost Section */
    .form-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch !important;
        /* Full width button */
        margin-top: 1.5rem !important;
    }

    .form-footer>div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #estimated-price {
        font-size: 1.5rem !important;
    }

    button[type="submit"] {
        width: 100% !important;
        /* Full width button */
        padding: 0.75rem !important;
        /* Standard mobile button height */
        font-size: 1rem !important;
    }

    /* Active Services - Compact List */
    .service-card {
        padding: 0.75rem !important;
    }
}

/* --- QR Modal & Buttons --- */
.btn-qr {
    background: rgba(52, 152, 219, 0.15);
    /* Blue Tint */
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
    width: 24px;
    /* Slightly larger than text, matching user request 'small' but clickable */
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    padding: 0;
}

.btn-qr:hover {
    background: rgba(52, 152, 219, 0.25);
    border-color: #3498db;
    transform: scale(1.1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.modal-card {
    background: #0f1115;
    border: 1px solid var(--color-glass-border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}


/* --- Promo Section --- */
.promo-dropzone {
    border: 2px dashed var(--color-glass-border);
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.promo-dropzone:hover {
    border-color: var(--color-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

.promo-dropzone.drag-over {
    border-color: var(--color-accent-glow) !important;
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.01);
}

.chevron-open {
    transform: rotate(90deg) !important;
    color: var(--color-primary) !important;
}

#promo-header:hover label,
#promo-header:hover span {
    color: var(--color-text-primary) !important;
}