﻿/* Modal-specific styles - general styles inherited from main.css */


/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* Modal Container */
.modal-container {
    position: fixed;
    right: 0;
    top: 30%;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-radius: 40px;
    overflow: hidden;
}

/* Modal Close Button (left side of the form) */
.modal-close-btn {
    display: flex;
    padding: 16px 0px 0px 0px;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-bg);
    height: 294px;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    transition: transform 0.5s ease;
    transform: rotate(180deg);
    border-bottom-right-radius: 40px;
    border-top-right-radius: 40px;
}

    .modal-close-btn .vertical-text {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        transform: rotate(180deg);
        font-family: 'Gilroy', sans-serif;
        font-weight: bold;
    }

        .modal-close-btn .vertical-text span {
      
            font-size: 32px;
            letter-spacing: 0.1em;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            transform: rotate(180deg);
        }

        .modal-close-btn .vertical-text .text-white {
            color: var(--text-color);
            font-family: 'Gilroy', sans-serif;
            font-weight: bold;
        }

        .modal-close-btn .vertical-text .text-teal {
            color: var(--accent-teal);
            margin-top: 8px;
            font-weight: 600;
            font-family: 'Gilroy', sans-serif;
        }

    .modal-close-btn .icon-wrapper {
        background-color: var(--accent-teal);
        border-radius: 50%;
        padding: 12px;
        transition: background-color 0.3s ease;
    }

        .modal-close-btn .icon-wrapper:hover {
            background-color: var(--accent-teal-hover);
        }

    .modal-close-btn .close-icon {
        width: 24px;
        height: 24px;
        color: var(--text-color);
    }

/* Form Content */
.modal-form-content {
    background-color: var(--primary-bg);
    padding: 32px;
    width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 0px 40px 40px 0px;
}

    .modal-form-content form {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

    .form-group label {
        color: var(--text-color);
        font-size: 18px;
        font-weight: 600;
    }

    .form-group input {
        background-color: transparent;
        border: 1px solid #ffffff;
        color: var(--text-color);
        padding: 14px 20px;
        border-radius: 50px;
        outline: none;
        transition: border-color 0.3s ease;
        font-size: 15px;
    }

        .form-group input::placeholder {
            color: var(--input-placeholder);
        }

        .form-group input:focus {
            border-color: var(--accent-teal);
        }

.btn-submit {
    width: 100%;
    background-color: #008080;
    color: var(--text-color);
    font-weight: 600;
    border-radius: 50px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    border: 1px solid #008080;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

    .btn-submit:hover {
        border: 1px solid #008080;
        background: #0E2D2D;
    }

    .btn-submit:focus {
        background: transparent;
    }

    .btn-submit svg {
        width: 16px;
        height: 16px;
    }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-container {
        width: 90%;
        max-width: 400px;
        right: 50%;
        transform: translate(50%, -50%);
        border-radius: 20px;
        flex-direction: column;
        height: auto;
    }

    .modal-close-btn {
        width: 100%;
        height: auto;
        padding: 16px;
        border-radius: 20px 20px 0px 0px;
        flex-direction: row;
    }

        .modal-close-btn .vertical-text {
            display: none;
        }

        .modal-close-btn .icon-wrapper {
            margin-bottom: 0;
        }

    .modal-form-content {
        width: auto;
        border-radius: 0px 0px 20px 20px;
    }

    .btn-submit {
        max-width: 200px;
    }
}
