/* Webinar Registration - Minimal CSS */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.overlay {
    background: rgba(0, 0, 0, 0.4);
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Success page container - single column centered */
.container:has(.success-box) {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    min-height: calc(100vh - 80px);
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .event-info {
        order: 2;
    }

    .registration-form {
        order: 1;
    }
}

/* Event Info */
.event-info {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.event-banner {
    margin: -30px -30px 20px -30px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.event-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.event-info h1 {
    margin: 0 0 15px;
    font-size: 28px;
    color: #2c3e50;
    line-height: 1.4;
}

/* Event Banner */
.event-banner {
    margin: -30px -30px 20px -30px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.event-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.event-date {
    color: #667eea;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
}

.description {
    color: #555;
    margin-bottom: 25px;
}

/* Speakers Section */
.speakers-section {
    margin-top: 30px;
}

.speakers-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
}

.speaker-block {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.speakers-section .speaker-block:first-child {
    border-top: none;
    padding-top: 0;
}

.speaker-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.speaker-info h3 {
    margin: 0 0 10px;
    color: #2c3e50;
}

.speaker-info p {
    color: #666;
    font-size: 14px;
}

/* Registration Form */
.registration-form {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.registration-form h2 {
    margin: 0 0 25px;
    color: #2c3e50;
    font-size: 22px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #5a6fd6;
}

/* Alerts */
.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

.alert-error ul {
    margin: 0;
    padding-left: 20px;
}

/* Privacy Note */
.privacy-note {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 15px;
}

/* Success Page */
.success-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.success-box {
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    font-size: 40px;
    line-height: 80px;
    margin: 0 auto 30px;
}

.success-box h1 {
    color: #28a745;
    margin-bottom: 20px;
}

.success-box h3 {
    color: #667eea;
    margin: 20px 0;
}

.webinar-link-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.btn-webinar {
    display: inline-block;
    padding: 15px 40px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
}

.btn-webinar:hover {
    background: #218838;
}

.back-link {
    margin-top: 30px;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Success page adaptations */
.success-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8f5e9;
}

.success-header h2 {
    margin: 0;
    color: #28a745;
    font-size: 22px;
}
