/* Reset and Base Styles */
*, *::before, *::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Variables */
:root {
    --primary-color: #0084D0;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --bg-light: rgb(248, 249, 250);
    --bg-hover: rgb(245, 245, 246);
    --box-shadow: 0px 10px 25px -20px #0000004a;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 800px;
}

/* Typography and Base Elements */
html {
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background: var(--bg-light);
    min-height: 100vh;
}

/* Links */
a {
    color: #ffc107;
    text-decoration: none !important;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

a:hover {
    color: color-mix(in srgb, #ffc107 85%, black);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Container */
.manualy-container {
    max-width: var(--container-width);
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Manual Section */
.manual-section {
    margin-bottom: 2rem;
}

.manual-section h2 {
    font-size: 1.5rem;
    background: #e5eaee;
    padding: 15px 20px;
    border-radius: 4px;
}

/* Manual Files */
.manual-files {
    display: -ms-grid;
    display: grid;
    gap: 1rem;
}

/* Manual Items */
.manual-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

.manual-item:hover {
    background: var(--bg-hover);
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: var(--box-shadow);
    box-shadow: var(--box-shadow);
}

.manual-item .material-icons {
    color: #ffc107;
    vertical-align: middle;
    margin-right: 8px;
}

/* Icons */
.pdf-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-right: 1rem;
}

/* Details */
.manual-details {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: row;
    gap: 10px;
}

.manual-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.manual-size {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* CKEditor Customization */
.ck-powered-by {
    display: none !important;
}

.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),
.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable) {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
}

/* Service Diary Form */
{
    background: white
;
    padding: 2rem
;
    position: relative
;
}

.form-label i {
    color: #ffc107;
}

/* Utility Classes */
.softshadow {
    -webkit-box-shadow: var(--box-shadow);
    box-shadow: var(--box-shadow);
}


/* Form Controls */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="password"],
select,
textarea,
.form-control,
.form-select {
    background-color: #EFF2F6;
    border: 1px solid #E2E7ED;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    width: 100%;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
}


table.reviewtable {
    background-color: #EFF2F6;
    border: 1px solid #E2E7ED;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    width: 100%;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
    color: #333;
    font-size: 1rem;
    line-height: 1.5;
    color: black;
}

table.reviewtable tr, table.reviewtable td {
    background: #f8f9fa !important;
}

select {
    min-width: 250px;
    font-weight: 700;
    color: black;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.2px;
}


/* Focus states */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #0084D0;
    -webkit-box-shadow: 0 0 0 3px rgba(0, 132, 208, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 132, 208, 0.1);
    background-color: #EFF2F6;
}

/* Placeholder */
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
    color: #9BA5B3;
}

input::-moz-placeholder, textarea::-moz-placeholder {
    color: #9BA5B3;
}

input:-ms-input-placeholder, textarea:-ms-input-placeholder {
    color: #9BA5B3;
}

input::-ms-input-placeholder, textarea::-ms-input-placeholder {
    color: #9BA5B3;
}

input::placeholder,
textarea::placeholder {
    color: #9BA5B3;
}

/* CKEditor matching style */
.ck.ck-editor__editable:not(.ck-editor__nested-editable),
.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable) {
    background-color: #EFF2F6 !important;
    border: 1px solid #E2E7ED !important;
    border-radius: var(--border-radius) !important;
}

.ck.ck-editor__editable:focus {
    border-color: #0084D0 !important;
    -webkit-box-shadow: 0 0 0 3px rgba(0, 132, 208, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(0, 132, 208, 0.1) !important;
}

/* Disabled state */
input:disabled,
select:disabled,
textarea:disabled,
.form-control:disabled {
    background-color: #F7F8FA;
    border-color: #E2E7ED;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Invalid state */
input:invalid,
select:invalid,
.form-control:invalid {
    border-color: #dc3545;
}

input:invalid:focus,
select:invalid:focus,
.form-control:invalid:focus {
    -webkit-box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

label {
    color: black;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.custombuttom a, button.custombuttom {
    max-width: 280px;
    width: 100%;
}

.contact-info {
    margin-top: 15px;
    margin-bottom: 15px;
}


.contact-info p, .company-details p {
    margin-bottom: 0;
    line-height: 1.4;
    /*font-size: 16px;*/
}


.customer-satisfaction-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
    margin-bottom: 20px;
}

.form-col {
    flex: 1;
    padding: 10px;
    min-width: 300px;
}

.full-width {
    flex: 0 0 100%;
}

.form-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-heading {
    text-align: center;
    margin: 30px 0;
    font-size: 24px;
}

.ratings-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.rating-card {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;

}


.help-icon {
    color: #666;
    margin-left: 5px;
    font-size: 14px;
    cursor: help;
}

.form-submit {
    text-align: center;
}

.submit-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.submit-button:hover {
    background: #0056b3;
}

/* Rating Section Styles */
.ratings-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 2rem 0;
}

.rating-card {
    background-color: #EFF2F6;
    border: 1px solid #E2E7ED;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.rating-card:hover {
    background-color: #F7F8FA;
    box-shadow: var(--box-shadow);
}

.rating-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.rating-label {
    color: var(--text-color);
    font-size: 1.125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-icon {
    color: var(--text-muted);
    font-size: 1rem;
    cursor: help;
    transition: var(--transition);
}

.help-icon:hover {
    color: #ffc107;
}

.star-rating {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    justify-content: flex-start;
}

.star-rating i {
    font-size: 2rem;
    color: #E2E7ED;
    cursor: pointer;
    transition: var(--transition);
}

.star-rating i:hover {
    transform: scale(1.1);
}

.star-rating i.active {
    color: #ffc107;
}

/* Make all following stars lighter on hover */
.star-rating i:hover ~ i {
    color: #E2E7ED;
}

/* Make all previous stars colored on hover */
.star-rating i:hover,
.star-rating i:has(~ i:hover) {
    color: #ffc107;
}

@media (max-width: 768px) {
    .rating-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .rating-card {
        padding: 1rem;
    }

    .rating-label {
        font-size: 1rem;
    }

    .star-rating i {
        font-size: 2rem;
    }

    .star-rating {
        width: 100%;
        justify-content: space-between;
    }
}

/* Invalid state for ratings */
.rating-card.invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
}

.rating-card.invalid .star-rating i {
    color: rgba(220, 53, 69, 0.2);
}

.rating-card.invalid .star-rating i.active {
    color: #dc3545;
}

.editor-container p {
    margin: 0 !important;
    line-height: 1.6;
}

#serviceType {
    color: black;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.2px;
}

#files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.customtitle {
    color: black !important;
    font-size: 22px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    margin: 0 !important;
}

.uploaded-file button {
    background: none;
    color: red;
    padding: 0;
    border: 0;
    margin: 0;
}

.rating-card {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .form-col {
        flex: 0 0 100%;
    }

    .rating-card {
        padding: 12px;
    }
}

@media (min-width: 768px) {
    .business-info {
        padding: 35px;
    }
}

@media (max-width: 768px) {

    .business-info {
        padding: 30px;
    }

    .custombuttom a, button.custombuttom {
        max-width: 100%;
        width: 100% !important;
    }

    .manual-files > a {
        padding: 10px !important;
    }


    .manual-files .manual-details > span {
        font-size: 16px;
        line-height: 1.2;
    }

    .manual-files .manual-details > span.manual-size {
        font-size: 12px;
    }

    html {
        font-size: 14px;
    }

    .manualy-container {
        padding: 0 1.5rem;
    } {
    padding: 1.5rem;
}

    .dennikselector {
        gap: 5px;
    }

    .dennikselector > div {
        width: 100%;
    }

    .fileupload-container > span.btn {
        width: 100%;
        margin-bottom: 10px;
    }

    #customerSatisfactionForm {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .rating-text {
        min-width: auto !important;
        font-size: 16px !important;
        margin-left: 0.5rem;
        display: block;
        min-width: 65% !important;
    }
}

/* Print Styles */
@media print { {
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

    .manual-item:hover {
        -webkit-transform: none;
        -ms-transform: none;
        transform: none;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
}

/* Focus States */
:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}

/* Selection */
::-moz-selection {
    background: color-mix(in srgb, #ffc107 30%, white);
    color: var(--text-color);
}

::selection {
    background: color-mix(in srgb, #ffc107 30%, white);
    color: var(--text-color);
}


.custom-password-form {
        max-width: 400px;
        margin: 40px auto;
        padding: 25px;
        background: #f9f9f9;
        border-radius: 10px;
        box-shadow: 0 0 15px rgba(0,0,0,0.1);
        font-family: sans-serif;
    }

    .custom-password-form .form-description {
        margin-bottom: 15px;
        font-size: 16px;
        color: #333;
    }

    .custom-password-form .password-field {
        margin-bottom: 20px;
    }

    .custom-password-form label {
        display: block;
        margin-bottom: 5px;
        font-weight: 600;
        color: #222;
    }

    .custom-password-form input[type="password"] {
        width: 100%;
        padding: 10px 12px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 6px;
        box-sizing: border-box;
    }

    .custom-password-form .password-error {
        background-color: #ffe0e0;
    color: #b30000;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: normal;
    text-align: center;
    font-size: 16px;
    line-height: 1.2;
    }

    .custom-password-form button {
        display: inline-block;
        width: 100%;
        padding: 12px;
        background-color: var(--e-global-color-primary);;
        color: #fff;
        font-size: 16px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }
	

    .custom-password-form button:hover {
        background-color: #204d74;
    }

    @media (max-width: 480px) {
        .custom-password-form {
            margin: 20px;
            padding: 20px;
        }
    }

