/* Dynamic Demo/Meeting Form Styling */
.demo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.demo-modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: demoModalFadeIn 0.3s ease-out;
}

@keyframes demoModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-modal-header {
    background: #f8fafc;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.demo-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
    font-weight: 700;
}

.close-demo-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
    line-height: 1;
}

.close-demo-modal:hover {
    color: #0f172a;
}

.demo-modal-body {
    padding: 24px;
}

.dynamic-demo-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.demo-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.demo-form-group.full-width {
    grid-column: span 2;
}

.demo-form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.demo-form-group input,
.demo-form-group select,
.demo-form-group textarea {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
}

.demo-form-group input:focus,
.demo-form-group select:focus,
.demo-form-group textarea:focus {
    outline: none;
    border-color: #16cba7;
    box-shadow: 0 0 0 3px rgba(22, 203, 167, 0.1);
}

.demo-form-actions {
    grid-column: span 2;
    margin-top: 8px;
}

.btn-submit-demo {
    width: 100%;
    padding: 14px;
    background: #16cba7;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-demo:hover {
    background: #12a88a;
}

/* Utility for toggling visibility */
.hidden {
    display: none !important;
}

/* Success State Styles */
.demo-success-state {
    text-align: center;
    padding: 20px 0;
    animation: demoModalFadeIn 0.4s ease-out;
}

.success-icon {
    font-size: 4rem;
    color: #16cba7;
    margin-bottom: 20px;
}

.demo-success-state h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 12px;
}

.demo-success-state p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1rem;
}

.btn-close-success {
    background: #1e293b;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-close-success:hover {
    background: #0f172a;
}

@media (max-width: 640px) {
    .dynamic-demo-form {
        grid-template-columns: 1fr;
    }

    .demo-form-group.full-width {
        grid-column: span 1;
    }

    .demo-form-actions {
        grid-column: span 1;
    }

    .demo-modal-content {
        max-width: 95%;
    }
}

/* Searchable Select Styling */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    padding-right: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.searchable-select input[type="text"]:focus {
    outline: none;
    border-color: #16cba7;
    box-shadow: 0 0 0 3px rgba(22, 203, 167, 0.1);
}

.searchable-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.searchable-options.active {
    display: block;
}

.searchable-option {
    padding: 10px 16px;
    font-size: 0.95rem;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s;
}

.searchable-option:hover {
    background: #f1f5f9;
    color: #16cba7;
}

.searchable-option.no-results {
    color: #94a3b8;
    font-style: italic;
    cursor: default;
    padding: 12px 16px;
}

.searchable-option.no-results:hover {
    background: none;
}