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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #4a4a4a;
    background: linear-gradient(135deg, #f8f4ff 0%, #e8ddf4 50%, #d4c5e8 100%);
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
}

.logo {
    display: inline-block;
    margin-bottom: 25px;
    padding: 20px 35px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(152, 123, 204, 0.15);
}

.logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #987bcc;
    letter-spacing: -0.5px;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #987bcc;
    letter-spacing: -1px;
}

header p {
    font-size: 1.2rem;
    color: #6b5b95;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(152, 123, 204, 0.15);
    position: relative;
    overflow: hidden;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #987bcc 0%, #b19cd9 50%, #987bcc 100%);
}

.recording-section {
    margin-bottom: 50px;
    padding: 30px;
    background: #fafafa;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
}

.section-title {
    font-size: 1.5rem;
    color: #987bcc;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    aspect-ratio: 16/9;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    letter-spacing: 0.3px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #987bcc 0%, #b19cd9 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(152, 123, 204, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(152, 123, 204, 0.4);
}

.btn-secondary {
    background: #8e8e93;
    color: white;
    box-shadow: 0 6px 20px rgba(142, 142, 147, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: #7c7c81;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(142, 142, 147, 0.4);
}

.btn-outline {
    background: transparent;
    color: #987bcc;
    border: 2px solid #987bcc;
}

.btn-outline:hover {
    background: #987bcc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(152, 123, 204, 0.3);
}

.status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f4ff 0%, #f0ebff 100%);
    border-radius: 15px;
    font-weight: 600;
    border: 1px solid #e8ddf4;
}

#status {
    color: #6b5b95;
}

#timer {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 1.3rem;
    color: #987bcc;
    font-weight: 700;
}

.form-section {
    border-top: 1px solid #e8ddf4;
    padding-top: 50px;
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #987bcc;
}

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

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #6b5b95;
    font-size: 1.1rem;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8ddf4;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #4a4a4a;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #987bcc;
    box-shadow: 0 0 0 4px rgba(152, 123, 204, 0.1);
    background: white;
}

textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.btn-submit {
    width: 100%;
    max-width: 350px;
    margin: 30px auto 0;
    display: block;
    font-size: 1.2rem;
    padding: 18px 40px;
    background: linear-gradient(135deg, #987bcc 0%, #b19cd9 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(152, 123, 204, 0.3);
    letter-spacing: 0.5px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(152, 123, 204, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Warm, welcoming accents */
.form-section {
    background: linear-gradient(135deg, #fdfcff 0%, #f9f6ff 100%);
    margin: -50px;
    margin-top: 0;
    padding: 50px;
    border-radius: 0 0 25px 25px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    main {
        padding: 30px 25px;
    }
    
    .recording-section {
        padding: 25px 20px;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .status {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-section {
        margin: -30px;
        margin-top: 0;
        padding: 40px 25px;
    }
}

@media (max-width: 480px) {
    .video-container {
        aspect-ratio: 4/3;
    }
    
    header {
        padding: 30px 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .form-section {
        margin: -25px;
        margin-top: 0;
        padding: 35px 20px;
    }
}

/* Success Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header h3 {
    color: #987bcc;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.modal-body p {
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.redirect-message {
    color: #6b5b95;
    font-weight: 600;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f4ff 0%, #e8ddf4 100%);
    border-radius: 10px;
    border: 2px solid #e8ddf4;
}

#countdownTimer {
    color: #987bcc;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Checkbox Styles */
.checkbox-group {
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f4ff 0%, #f0ebff 100%);
    border-radius: 15px;
    border: 2px solid #e8ddf4;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 5px;
    accent-color: #987bcc;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a4a4a;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 400;
    text-align: left;
}

@media (max-width: 768px) {
    .checkbox-group {
        padding: 15px;
        margin-bottom: 30px;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 3px;
    }
}