/* ========================================
   Registration Modal Styles
   ======================================== */

.registration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.registration-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.registration-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.registration-modal__container {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.registration-modal__content {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.registration-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.registration-modal__close svg {
    width: 20px;
    height: 20px;
    color: #333;
    transition: transform 0.3s ease;
}

.registration-modal__close:hover {
    background: #e74c3c;
    transform: rotate(90deg);
}

.registration-modal__close:hover svg {
    color: #fff;
}

.registration-modal__header {
    margin-bottom: 30px;
    text-align: center;
}

.registration-modal__title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.registration-modal__subtitle {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.5;
    margin: 0;
}

.registration-modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.registration-modal__form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.registration-modal__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-2);
    margin-bottom: 0;
}

.registration-modal__label .required {
    color: #e74c3c;
    margin-left: 2px;
}

.registration-modal__input,
.registration-modal__textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #2c3e50;
    background: #fff;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
}

.registration-modal__input:focus,
.registration-modal__textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.registration-modal__input::placeholder,
.registration-modal__textarea::placeholder {
    color: #bdc3c7;
}

.registration-modal__textarea {
    resize: vertical;
    min-height: 100px;
}

.registration-modal__actions {
    margin-top: 10px;
}

.registration-modal__submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--color-2) 0%, var(--color-3) 100%);
    color: #fff;
    border: 1px solid var(--color-2);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.registration-modal__submit:hover {
    background: white;
    color: var(--color-2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.registration-modal__submit:active {
    transform: translateY(0);
}

.registration-modal__submit .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.registration-modal__submit .icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.registration-modal__submit:hover .icon svg {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-modal__content {
        padding: 30px 24px;
    }

    .registration-modal__title {
        font-size: 24px;
    }

    .registration-modal__subtitle {
        font-size: 14px;
    }

    .registration-modal__close {
        width: 36px;
        height: 36px;
        top: 16px;
        right: 16px;
    }

    .registration-modal__close svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .registration-modal__container {
        width: 95%;
    }

    .registration-modal__content {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .registration-modal__title {
        font-size: 22px;
    }

    .registration-modal__form {
        gap: 16px;
    }

    .registration-modal__input,
    .registration-modal__textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .registration-modal__submit {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Button element styling fix for .c-btn-01 */
button.c-btn-01 {
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    text-align: inherit;
}
