/* Slide Contact Form Styles */
.slide-contact-form {
    position: fixed;
    right: -400px; /* Start off-screen */
    top: 0;
    height: 100vh; /* Use viewport height for better sizing */
    width: 400px;
    z-index: 99999; /* Very high z-index to ensure it's above everything */
    transition: right 0.3s ease-in-out;
    display: flex;
    pointer-events: auto;
}

.slide-contact-form.open {
    right: 0;
}

.contact-toggle-btn {
    position: fixed; /* Fixed position relative to viewport */
    top: 30%; /* Moved higher up the page (was 50%) */
    right: 0; /* Positioned at the right edge of the viewport */
    transform: translateY(-50%) rotate(-90deg);
    background-color: #157b9d;
    color: white;
    padding: 15px 25px; /* Larger padding for better visibility */
    cursor: pointer;
    border-radius: 8px 8px 0 0; /* Increased radius for more rounded corners */
    transform-origin: right bottom;
    white-space: nowrap;
    font-weight: 600; /* Bolder text */
    font-size: 18px; /* Even larger text */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9998; /* High z-index but below the form */
    box-shadow: -3px -3px 8px rgba(0, 0, 0, 0.4); /* More prominent shadow */
    transition: background-color 0.3s ease;
    z-index: 100000; /* Very high z-index */
}

.contact-toggle-btn:hover {
    background-color: #0f6a8a;
}

.contact-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contact-form-header {
    background-color: #157b9d;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-form-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.close-contact-form {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.contact-form-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.contact-form-body p {
    margin-bottom: 20px;
    font-weight: 300;
    color: #555;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #157b9d;
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-submit-btn {
    background-color: #157b9d;
    color: white;
    border: none;
    padding: 12px 20px;
    width: 100%;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-submit-btn:hover {
    background-color: #0f6a8a;
}

.form-footer {
    margin-top: 15px;
    font-size: 12px;
    color: #777;
    text-align: center;
}

.form-footer a {
    color: #157b9d;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Hide button when form is open */
/* When the form is open, hide the toggle button */
.slide-contact-form.open ~ .contact-toggle-btn,
body:has(.slide-contact-form.open) .contact-toggle-btn {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .slide-contact-form {
        width: 320px;
        right: -320px;
    }
    
    .contact-toggle-btn {
        top: 20%;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .contact-form-header h3 {
        font-size: 1.3rem;
    }
    
    .form-submit-btn {
        padding: 10px 15px;
        font-size: 15px;
    }
}
