.calculator-container {
    margin: 190px auto;
    padding: 30px;
    background-color: #fafafa;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h2,
h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2em;
}

h3 {
    font-size: 1.5em;
    margin-top: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Form General */
#order-form .form-group {
    margin-bottom: 20px;
}

#order-form label:not(.service-label):not(.consent-label) {
    /* Exclude service and consent labels from this specific styling */
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

#order-form input[type="text"],
#order-form input[type="email"],
#order-form input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

#order-form input[type="text"]:focus,
#order-form input[type="email"]:focus,
#order-form input[type="number"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    /* Adjusted minmax */
    gap: 20px;
}

.service-card {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    background-color: #f9f9f9;
    transition: 0.5s;
    display: flex;
    /* Use flex for alignment */
    flex-direction: column;
    /* Stack content vertically */
}

.service-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service-card.selected {
    border-color: #292929;
    background-color: #292929;
    color: white;
}

.service-card.selected .tooltip-trigger {
    color: white;
}

.service-card-main-content {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    /* Space before tooltip trigger if any */
    flex-grow: 1;
    /* Allow label to take space */
}

.service-checkbox {
    /* Renamed from service-card input[type="checkbox"] */
    margin-right: 12px;
    width: 1.3em;
    height: 1.3em;
    cursor: pointer;
    flex-shrink: 0;
    /* Prevent checkbox from shrinking */
}

.service-label {
    /* Renamed from service-card label */
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* Stack name and price info */
}

.service-name {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.3em;
}

.price-info .original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 1.3em;
    margin-right: 8px;
}

.price-info .current-price {
    font-weight: bold;
    color: #28a745;
    /* Green for discounted price */
    font-size: 1.3em;
}

.price-info .current-price.no-discount {
    color: #333;
    /* Regular price color if no discount */
}

.price-info .discount-tag {
    font-size: 1.2em;
    color: #dc3545;
    /* Red for discount tag */
    margin-left: 5px;
    font-weight: bold;
}

/* Tooltip */
.tooltip-trigger {
    font-size: 0.8em;
    color: #000;
    cursor: pointer;
    text-decoration: underline;
    align-self: flex-start;
    /* Align to start of card */
    margin-top: auto;
    /* Push to bottom if card content is short */
}

.tooltip-content {
    display: none;
    position: absolute;
    left: 0;
    top: 90%;
    /* Position below the card */
    width: calc(100% - 30px);
    /* Match card padding */
    max-width: 600px;
    background-color: #fff;
    color: #333;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    font-size: 0.9em;
    border: 1px solid #ddd;
}

.tooltip-content:hover {
    display: block;
}

.tooltip-content.active {
    display: block;
}

.tooltip-content strong {
    display: block;
    margin-bottom: 8px;
    color: #000;
}

.tooltip-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 8px;
    border: 1px solid #eee;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Consent Checkboxes */
.consent-section .form-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.consent-section input[type="checkbox"] {
    margin-right: 10px;
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
    flex-shrink: 0;
}

.consent-label {
    /* Renamed from .consent-section label */
    font-weight: normal;
    margin-bottom: 0;
    font-size: 0.95em;
}

.consent-label a {
    color: #007bff;
    text-decoration: none;
}

.consent-label a:hover {
    text-decoration: underline;
}

/* Total Summary */
.total-summary {
    margin-top: 30px;
    padding: 20px;
    background-color: #e9ecef;
    border-radius: 6px;
    text-align: right;
}

.total-summary h3 {
    margin: 0;
    font-size: 1.6em;
    color: #343a40;
}

#total-price-value {
    font-weight: bold;
    color: #007bff;
}

/* Button */
button[type="submit"] {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 30px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h5 {
    font-size: 1.5em;
    color: #28a745;
    margin-top: 0;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 1.1em;
    margin-bottom: 0;
}

.modal.show {
    display: flex;
}

/* Error messages */
.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

.form-group.error input,
.form-group.error textarea {
    border-color: red;
}

#form-general-errors {
    color: red;
    margin-bottom: 15px;
    font-weight: bold;
}

@media screen and (max-width: 600px) {
    .offer {
        margin: 0 !important;
    }

    .services-grid {
        grid-template-columns: none !important;
    }

    .tooltip-content {
        width: 100% !important;
    }
}
