* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #292929;
    color: #fff;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hidden {
    display: none !important;
}

/* Form Styles */
.form-card {
    background: #3a3a3a;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.form-card h1 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 24px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #e0e0e0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #292929;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6264a7;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #6264a7;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #5558a0;
}

/* Call Styles */
.call-header {
    width: 100%;
    max-width: 1200px;
    padding: 15px 20px;
    background: #252525;
    border-radius: 8px 8px 0 0;
    margin-bottom: 10px;
}

.call-title {
    font-size: 18px;
    font-weight: 600;
}

.call-content {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 15px;
    transition: all 0.5s ease;
}

.screen-share {
    flex: 1;
    background: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-share img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.video-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 10px;
    transition: all 0.5s ease;
}

.video-grid.sidebar {
    width: 200px;
    flex-shrink: 0;
}

.video-box {
    position: relative;
    background: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    --intensity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.video-grid.sidebar .video-box {
    aspect-ratio: 4/3;
    height: 120px;
}

.video-box.speaking {
    border-color: rgba(98, 100, 167, var(--intensity));
    box-shadow: 0 0 calc(20px * var(--intensity)) rgba(98, 100, 167, calc(0.5 * var(--intensity)));
}

.video-box img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #3a3a3a;
    transition: transform 0.1s ease, border-color 0.1s ease, border-width 0.1s ease;
    transform: scale(calc(1 + var(--intensity) * 0.15));
}

.video-grid.sidebar .video-box img {
    width: 60px;
    height: 60px;
}

.video-box.speaking img {
    border-color: rgba(180, 180, 180, calc(0.5 + var(--intensity) * 0.5));
    border-width: 2px;
}

.name-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.video-grid.sidebar .name-tag {
    padding: 2px 6px;
    font-size: 10px;
    bottom: 2px;
    left: 2px;
    border-radius: 2px;
}

.btn-replay {
    margin-top: 20px;
    padding: 14px 40px;
    background: #6264a7;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-replay:hover {
    background: #5558a0;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .video-grid:not(.sidebar) {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-card h1 {
        font-size: 28px;
    }
    
    .video-box img {
        width: 120px;
        height: 120px;
        transform: scale(calc(1 + var(--intensity) * 0.15));
    }
    
    .video-grid.sidebar .video-box img {
        width: 60px;
        height: 60px;
    }
}
