/* Styling for the Request Cancellation Section */

/* General container for the cancellation section */
.cancel-appointment-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #151524;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Header for the cancellation section */
.cancel-appointment-header h2 {
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Underline effect for the heading */
.cancel-appointment-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #7a47ff;
    border-radius: 2px;
}

/* Description paragraph */
.cancellation-description {
    font-size: 1.1em;
    color: white;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Styling for the form itself */
.cancellation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual form groups */
.form-group3 {
    width: 100%;
    margin-bottom: 15px;
    text-align: left;
}

.form-group3 label {
    display: block;
    font-size: 1em;
    color: white;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group3 input[type="text"] {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    color: #fff;
    background-color: #2a2a40;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group3 input[type="text"]:focus {
    border-color: #7a47ff;
    box-shadow: 0 0 8px rgba(122, 71, 255, 0.2);
    outline: none;
}

/* Error message styling */
p.error-message {
    color: #ff4747;
    font-size: 0.95em;
    margin-top: 10px;
    font-weight: bold;
}

/* Submit button for cancellation */
.cancel-request-btn {
    background-color: #7a47ff;
    color: #fff;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
    align-self: center;
}

.cancel-request-btn:hover {
    background-color: #3fe0dd;
    transform: translateY(-2px);
}

/* --- Confirmation Modal Styling --- */

.confirmation-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

.confirmation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.confirmation-header h2 {
    margin: 0;
    font-size: 1.8em;
    color: #333;
}

.close-button {
    background: none;
    border: none;
    padding: 0;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
}

.confirmation-details p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5;
}

.confirmation-details p:first-of-type {
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.confirmation-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.keep-appointment-button,
.cancel-it-button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex: 1;
    max-width: 180px;
}

.keep-appointment-button {
    background-color: #4CAF50;
    color: white;
}

.keep-appointment-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.cancel-it-button {
    background-color: #ff4747;
    color: white;
}

.cancel-it-button:hover {
    background-color: #e03f3f;
    transform: translateY(-2px);
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .cancel-request-btn {
        width: 100%;
        max-width: none;
    }
}