
/* Custom Styling for a nicer look */
:root {
    --primary-color: #007bff;
    /* Blue for primary actions/focus */
    --success-color: #4CAF50;
    /* Green for selection/success */
    --error-color: #d9534f;
    /* Red for errors/totals */
    --text-color: #444;
    /* Dark gray for better readability */
    --bg-light: #f7f7f7;
    /* Light background for body */
    --card-bg: #fff;
    --shadow-subtle: 0 2px 15px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 0;
}

/* Titles and Headers */
h1,
h2,
h3,
h4 {
    color: #333;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}


#content {
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 0 auto;
}

.section-container {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    padding: 30px;
}

.full-width {
    grid-column: span 2;
}

@media (max-width: 800px) {
    .grid-wrapper {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 20px;
    }
}

.section-container>b {
    display: block;
    margin-top: 5px;
    font-weight: 600;
    color: #333;
}

.service-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
    padding: 0 10px;
}

.service-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    /* Slightly smaller radius */
    padding: 15px;
    /* Reduced padding to make cards smaller */
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-height: 100px;
    /* Reduced min-height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--card-bg);
}

/* Hover and Selected styles remain visually strong */
.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

.service-card.selected {
    border: 2px solid var(--success-color);
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
    background-color: #f0fff0;
}

.service-card h4 {
    font-size: 1.1em;
    /* Slightly smaller title font */
    font-weight: 600;
    margin-bottom: 5px;
}

.service-card .price {
    font-size: 1.6em;
    /* Slightly smaller price font */
    font-weight: 700;
    color: var(--error-color);
    margin: 8px 0;
}

.service-card p {
    font-size: 0.85em;
    /* Smaller description font */
    color: #777;
}

.service-card input[type="checkbox"] {
    display: none;
}

/* --- Total and Submit Styles --- */
.total-container {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #ccc;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.total-container h2 {
    font-size: 1.5em;
    font-weight: 600;
}

/* --- Total and Submit Styles --- */
.auftrag-container {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #ccc;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.auftrag-container h1 {
    font-size: 1.5em;
    font-weight: 600;
    padding: 20px;
}

#total-price {
    color: var(--error-color);
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 10px;
}

.service_button {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 12px 25px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease;
    margin-top: 20px !important;
    float: right;
}

/* Styles for the disabled state */
.service_button:disabled {
    background-color: #aaa !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.7;
}

/* Styles for hover, applied ONLY when the button is NOT disabled */
.service_button:not(:disabled):hover {
    background-color: #0056b3 !important;
}

/* --- Datepicker Styling --- */
#datePickerContainer {
    margin: 25px 0 35px 0;
    display: flex;
    justify-content: center;
    padding: 10px;
    font-size: 20px;
    overflow-x: auto;
    /* Allows calendar to scroll if it slightly overflows */
}

#datePickerError {
    margin: 25px 0 35px 0;
    display: flex;
    justify-content: center;
    padding: 10px;
    font-size: 20px;
    color: red;
    overflow-x: auto;
    /* Allows calendar to scroll if it slightly overflows */
}

#disclaimer {
    display: flex;
    justify-content: center;
    font-size: 20px;
    overflow-x: auto;
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
}

/* Add a clean display for selected date feedback */
#selectedDateDisplay {
    font-size: 1.1em;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 15px;
    text-align: center;
}

/* Verification Form Styles */
.verification-form-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    text-align: center;
}

.verification-form-container input[type="email"],
.verification-form-container input[type="text"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1.1em;
    text-align: center;
}

.verification-form-container button {
    background-color: var(--primary-color);
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s;
}

.verification-form-container button:hover {
    background-color: #0056b3;
}

.message.error {
    color: var(--error-color);
    padding: 10px;
    background-color: #fdd;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: bold;
}

.message.success {
    color: var(--success-color);
    padding: 10px;
    background-color: #e9fbeb;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: bold;
}


/* --- Mobile Specific Overrides (Media Query) --- */
@media (max-width: 600px) {
    .service-options-grid {
        /* Stack the service cards vertically on small phones */
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .section-container {
        padding: 20px;
    }

    .total-container {
        justify-content: space-between;
        /* Better space utilization on mobile */
    }
}

#loginbox {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Message Styling */
.message {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Form Styling */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Space between form elements */
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

input[type="email"],
input[type="text"],
select {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
    width: 100%;
    transition: border-color 0.2s;
}

input[type="email"]:focus,
input[type="text"]:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

/* OTP Form Specific Styling */
#otp_code {
    font-size: 20px;
    text-align: center;
    letter-spacing: 5px;
}

h3 {
    text-align: center;
    font-size: 1.1em;
    color: #6c757d;
}

/* Logout and Resend Button */
.logout-link {
    display: block;
    text-align: right;
    font-size: 0.9em;
    margin-top: -10px;
}

.button2 {
    background: none;
    color: var(--domain-default-color);
    /* Link color */
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.2em;
    text-decoration: none;

}
