﻿/* Overlay: darkens the background */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* semi-transparent black */
    z-index: 1040;
}

/* Sidebar form panel */
.sidebar-form {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: #ffffff;
    padding: 32px 24px;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    z-index: 1050; /* ensure it's above the overlay */
    font-family: 'Segoe UI', Tahoma, sans-serif;
    animation: slide-in 0.3s ease forwards;
}

/* Slide-in animation */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form header with close icon */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.sidebar-form.close-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #333;
}
/* Overlay: darkens the background */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* semi-transparent black */
    z-index: 1040;
}

/* Sidebar form panel */
.sidebar-form {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: #ffffff;
    padding: 32px 24px;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    z-index: 1050; /* ensure it's above the overlay */
    font-family: 'Segoe UI', Tahoma, sans-serif;
    animation: slide-in 0.3s ease forwards;
}

/* Slide-in animation */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Form header with close icon */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #1f2937;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #333;
}

/* Description text */
.form-description {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Input/Select/Textarea layout */
.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 0.92rem;
        margin-bottom: 6px;
        font-weight: 500;
        color: #2c3e50;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 10px 12px;
        font-size: 0.95rem;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-family: inherit;
        color: #333;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            border-color: black;
            outline: thick;
            box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
        }

/* Submit button */
.submit-btn {
    width: 100%;
    background-color: #0d1128;
    color: #ffffff;
    font-weight: 600;
    padding: 10px 16px;
    font-size: 0.95rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.2s ease, opacity 0.2s ease;
    margin-top: 10px;
}

    .submit-btn:hover {
        background-color: #1a1e34;
    }

    .submit-btn:disabled {
        background-color: #cccccc !important; /* Light gray */
        color: #666666 !important; /* Darker text */
        cursor: not-allowed;
        opacity: 0.8;
    }

#fi-submitMessage {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

    #fi-submitMessage.success {
        color: green;
    }

    #fi-submitMessage.error {
        color: red;
    }