#kendoRescheduleDialog {
    background: #ebebeb;
    font-size: 14px;
    padding: 1.5em;

    :is(h1, h2, h3, h4, h5, h6) {
        margin-top: 0;
    }
}

#kendoRescheduleDialog * {
    box-sizing: border-box;
}

#kendoRescheduleDialog label:before {
        content: "* ";
        color: red;
}

.two-column-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal-width columns */
    gap: 20px; /* Space between grid items */
}

.full-width {
    grid-column: span 2; /* Force full-width fields across both columns */
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 0;
    
    label {
        font-weight: normal;
    }
}

.form-group.buttons {
    flex-direction: row;
    gap: 10px;
    justify-content: flex-end;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.form-group input[type="text"]:read-only {
    background-color: #f5f5f5;
    cursor: default;
}

.error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    position: absolute;
    bottom: -36px;
}

button.AITButton {
    padding: 10px 15px;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

button.cancel-btn {
    background-color: #f8f9fa;
    color: #0055a5;
    border: 1px solid #ccc;
}

@media (max-width: 768px) {
    .two-column-form {
        grid-template-columns: 1fr;
    }

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

    .form-group.full-width {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    button.AITButton {
        width: 100%;
        font-size: 14px;
    }
}

.iframe-dialog {
    height: 90%;
    top: 5% !important;

    .k-dialog-content {
        height: 100%;
        overflow: hidden;
    }

    .dialog-content {
        position: relative;
        height: 100%;
    }

    .iframe-content {
        height: 100%;
        position: relative;
    }

    iframe {
        height:  calc(133.33% - 160px);
        transform: scale(0.75);
        transform-origin: 0 0;
        width: 133.33%;
        overflow: hidden;
    }

    .buttons {
        position: absolute;
        bottom: 20px;
        right: 0;
    }
}


@media (max-width: 480px) {
    .two-column-form {
        gap: 15px;
        padding: 15px;
    }

    button.AITButton {
        font-size: 12px;
    }
    
    .form-group.buttons {
        margin-top: 1.5em;
    }
    
    .iframe-dialog {
        iframe {
            height:  calc(100% - 122px);
            width: 100%;
            transform: none !important;
        }
        
        .buttons {
            position: static !important;
            
        }
    }
}
.dialog-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Takes up the full dialog height */
}
.dialog-loader .spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #337ab7; /* Spinner color */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.reschedule-button {
    background: none;
    border: none;
    color: #337ab7;
    
    &:hover {
        text-decoration: underline;
        cursor: pointer;
    }
}
