/* General Layout */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
*{
    box-sizing: border-box;
    font-family: "Lato", sans-serif;
}
#service-calculator {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    font-family: Arial, sans-serif;
    background-color: #000000;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#service-calculator h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* Step Containers */
#service-calculator div[id^="step"] {
    display: none;
}

#service-calculator #step1, #service-calculator #step2, #service-calculator #step5 {
    display: block;
    color: #fff;
}

/* Form Fields */
#service-calculator label {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    color: #fff;
}

#service-calculator input[type="text"],
#service-calculator input[type="email"],
#service-calculator input[type="tel"],
#service-calculator input[type="date"],
#service-calculator input[type="number"],
#service-calculator input[type="checkbox"],
#service-calculator select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    border: 1px solid #fff;
    background-color: transparent !important;
    color: #fff;
}

#service-calculator input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin: 0;
}

#service-calculator input[type="number"] {
    width: auto;
}



#service-calculator button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Total Cost Display */
#service-calculator #total-cost {
    font-weight: bold;
    font-size: 18px;
    color: #333;
    margin-top: 20px;
}

/* Step Navigation */
#service-calculator button[type="button"] {
    margin-right: 10px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
    #service-calculator {
        padding: 15px;
    }

    #service-calculator input[type="text"],
    #service-calculator input[type="email"],
    #service-calculator input[type="tel"],
    #service-calculator input[type="date"],
    #service-calculator input[type="number"] {
        font-size: 16px;
    }



    #service-calculator #total-cost {
        font-size: 16px;
    }
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.cust-loader {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#invoice-container {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    border: 2px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

#invoice-header {
    text-align: center;
    margin-bottom: 20px;
}

#user-details, #selected-services, #service-category-breakdown {
    margin-bottom: 20px;
}

#user-details h4, #selected-services h4, #service-category-breakdown h4 {
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

#invoice-services-list {
    list-style-type: none;
    padding: 0;
}

#invoice-services-list li {
    background-color: #f1f1f1;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 5px;
}

#category-breakdown-table {
    width: 100%;
    border-collapse: collapse;
}

#category-breakdown-table th, #category-breakdown-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

#category-breakdown-table th {
    background-color: #f4f4f4;
}

#invoice-total-section {
    text-align: right;
    font-size: 18px;
    margin-top: 20px;
    font-weight: bold;
}
@media print {
    body * {
        visibility: hidden !important;
    }
    #invoice-container,
    #invoice-container * {
        visibility: visible !important;
    }
    #invoice-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    /* Prevent unnecessary page breaks */
    #invoice-container {
        page-break-inside: avoid;
    }

    /* Force page break if content overflows */
    .break-page {
        page-break-before: always;
    }

    /* Reset page margins */
    @page {
        margin: 0;
    }
}

.step1checkbox span{
    font-size: 16px;
    font-weight: 500;
    margin-left: 8px;
}
#service-calculator .next-btn, #service-calculator .prev-btn{
    padding: 12px 50px 12px 50px;
    background-color: #FFE82C;
    font-size: 16px;
    color: #000;
    transition: .3s;
    border: none;
    outline: none;
    font-weight: 500;
    cursor: pointer;
}
#service-calculator .next-btn:hover, #service-calculator .prev-btn:hover{
    transform: scale(1.05);
}
.select2-container{
    width: 100% !important;
}
.select2-container--default .select2-selection--single{
    border: 1px solid #ffffff !important;
    border-radius: 0 !important;
    padding: 10px 10px;
    width: 100%;
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    background-color: transparent !important;
    color: #fff !important;
}
.select2-container .select2-selection--single{
    height: auto !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder{
    color: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b{
    margin-left: -8px !important;
    margin-top: 10px !important;
}
.select2-results__option{
    font-size: 16px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
    color: #fff !important;
}
#service-calculator #step1 .next-btn, #service-calculator #step2 .next-btn, #service-calculator #step2 .prev-btn{
    margin-top: 15px;
}
#service-calculator select option{
    color: #000;
}
#step7 p, #step7 span{
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}
#service-calculator #step7 .prev-btn{
    margin-top: 15px;
}
