:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --text-main: #374151;
    --text-muted: #6b7280;
    --bg-body: #f9fafb;
    --border-color: #e5e7eb;
}

#demo-modal .form-group {
    margin: 0 0;
}

#demo-modal button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* --- Utility Classes --- */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-sm {
    font-size: 1rem;
}

.text-xs {
    font-size: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin: 0;
}

.pt-2 {
    padding-top: 0.5rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 0.8rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.overflow-hidden {
    overflow: hidden;
}

.text-white {
    color: #fff;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-100 {
    color: #f3f4f6;
}

.text-red-500 {
    color: #ef4444;
}

/* --- Component Styles --- */


.btn-trigger {
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    font-size: 17px;
    border-radius: 10px;
    margin-right: 5PX;
}

    .btn-trigger:hover {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.8);
    }

@media (max-width: 768px) {
    .btn-trigger {
        margin-top: 10px;
        margin-right: unset;
    }
}


#demo-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease-out;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background-color: white;
    width: 100%;
    max-width: 56rem;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 90vh;
    transform: scale(0.95) translateY(10px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out;
    border: 1px solid rgba(255,255,255,0.5);
}

/* Logic for show/hide classes */
.modal-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

    .modal-visible .modal-content {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

.btn-close-mobile {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    color: #6b7280;
    transition: color 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .btn-close-mobile:hover {
        color: #1f2937;
    }

.btn-close-desktop {
    background:none;
    display: none;
    color: #9ca3af;
    transition: color 0.2s;
}

    .btn-close-desktop:hover {
        color: #4b5563;
    }

.modal-sidebar {
    display: none;
    background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
    color: white;
    padding: 2.5rem;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    width: 41.666667%;
}

.feature-icon {
    color: #c7d2fe;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.logo-box {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255,255,255,0.2);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.modal-form-area {
    width: 100%;
    padding: 2.5rem;
    background-color: white;
    overflow-y: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    outline: none;
    transition: all 0.2s;
    text-align: right;
    font-family: inherit;
    background-color: #f9fafb;
}

    .form-input:focus {
        border-color: var(--primary-color);
        background-color: #fff;
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    }

    .form-input[dir="ltr"] {
        text-align: left;
    }

textarea.form-input {
    resize: none;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

    .btn-submit:hover {
        background-color: var(--primary-hover);
        box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    }

    .btn-submit:disabled {
        background-color: #9ca3af;
        cursor: not-allowed;
        box-shadow: none;
    }

.success-icon-box {
    width: 4.5rem;
    height: 4.5rem;
    background-color: #ecfdf5;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.success-icon {
    width: 2.25rem;
    height: 2.25rem;
    color: #10b981;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #4b5563;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s;
}

    .btn-secondary:hover {
        background-color: #e5e7eb;
    }

.blob {
    position: absolute;
    border-radius: 9999px;
    filter: blur(50px);
    opacity: 0.4;
    width: 16rem;
    height: 16rem;
    mix-blend-mode: soft-light;
}

.blob-1 {
    background-color: #ffffff;
    top: -5rem;
    right: -5rem;
}

.blob-2 {
    background-color: #a5b4fc;
    bottom: -5rem;
    left: -5rem;
}

#demo-modal .avatar-group {
    display: flex;
}

#demo-modal .avatar {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    border: 2px solid white;
    margin-left: -0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .avatar:not(:first-child) {
        margin-right: -0.75rem;
        margin-left: 0;
    }

@media (min-width: 768px) {
    .modal-content {
        flex-direction: row;
        max-height: 800px;
    }

    .modal-sidebar {
        display: flex;
    }

    .modal-form-area {
        width: 58.333333%;
        padding: 1rem 2rem;
    }

    .btn-close-mobile {
        display: none;
    }

    .btn-close-desktop {
        display: block;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }

.captcha-container {
    display: flex;
    justify-content: center;    
}

.g-recaptcha {
    transform: scale(0.77);
    transform-origin: 0 0;
}

.text-xs.text-gray-100.co-text {
    font-size: 10px;
    margin-right: 5px;
}