/* Webinar Landing Page Builder - Main Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --color-primary: #00B659;
    --color-dark: #00023D;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-bg: #f6f6f6;
    --font-family: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: var(--color-bg);
    color: var(--color-dark);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #009647;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-dark);
    color: var(--color-white) !important;
}

.btn-secondary:hover {
    background: #000529;
    color: var(--color-white) !important;
    text-decoration: none;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--color-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

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

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Header */
.header {
    background: var(--color-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--color-primary);
}

/* Cards */
.card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-dark);
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.table th {
    background: var(--color-dark);
    color: var(--color-white);
    font-weight: 600;
}

.table tr:hover {
    background: #f9f9f9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-white);
    border-radius: 10px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--color-black);
}

/* Landing Page Specific */
.landing-hero {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 60px;
    display: block;
}

.landing-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.landing-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 20px;
    text-align: center;
}

.webinar-date {
    font-size: 32px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
}

.landing-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: center;
}

.cta-section {
    text-align: center;
    margin: 50px 0;
}

.cta-button {
    display: inline-block;
    padding: 20px 50px;
    background: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,182,89,0.3);
}

.cta-button:hover {
    background: #009647;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,182,89,0.4);
}

.qr-code {
    text-align: center;
    margin: 40px 0;
}

.qr-code h3 {
    margin-bottom: 30px;
}

.qr-code img {
    max-width: 300px;
}

.speakers-section {
    margin: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-dark);
}

.speakers-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.speaker-card {
    background: var(--color-white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.speaker-photo {
    width: 350px;
    height: 500px;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

.speaker-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.speaker-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-dark);
}

.speaker-position {
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.speaker-bio {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.linkedin-link {
    display: inline-block;
    margin-top: 15px;
    transition: opacity 0.2s ease;
}

.linkedin-link:hover {
    opacity: 0.7;
}

.linkedin-link svg {
    display: block;
}

.footer {
    background: #c0c0c0;
    color: #666;
    padding: 25px 0;
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.footer-logo {
    max-width: 40px;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .landing-title {
        font-size: 28px;
    }

    .webinar-date {
        font-size: 24px;
    }

    .landing-description {
        font-size: 16px;
    }

    .cta-button {
        padding: 15px 40px;
        font-size: 18px;
    }

    .speaker-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .speaker-photo {
        width: 300px;
        height: 450px;
    }

    .speaker-info {
        align-items: center;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }
}

/* Checkbox/Radio custom styles */
.checkbox-group, .radio-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
}

.checkbox-group input[type="checkbox"],
.radio-group input[type="radio"] {
    margin-top: 4px;
}

.checkbox-group label,
.radio-group label {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
