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

:root {
    --primary-color: rgb(44, 105, 145);
    --neutral-white: #ffffff;
    --dark-shade: #1a2332;
    --gold-highlight: #d4af37;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-shade);
    overflow-x: hidden;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-shade) 100%);
}

.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./assets/bg.webp');
    /* background-image: url('https://sa1s3optim.patientpop.com/filters:format(webp)/assets/production/practices/2a92dd7bdb239e72a7049d2359215ce60494aa05/images/2678321.jpg'); */

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridFloat 20s ease-in-out infinite;
}

@keyframes gridFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-15px, -15px);
    }
}

.container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-placeholder {
    display: inline-block;
    width: 150px;
    height: 150px;
    /* background: var(--gold-highlight); */
    border-radius: 50%;
    margin: 0 1rem;
    position: relative;
    /* animation: logoGlow 3s ease-in-out infinite; */
}

.logo-placeholder img{
    width: 100%;
}

@keyframes logoGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    }
}

.event-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.event-subtitle {
    font-size: 1.7rem;
    color: var(--gold-highlight);
    margin-bottom: 1rem;
    font-weight: 500;
}

.event-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.main-content {
    padding: 3rem 1rem;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.event-details {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    color: var(--neutral-white);
}

.detail-item {
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--gold-highlight);
    display: block;
    margin-bottom: 0.5rem;
}

.register-btn {
    background: linear-gradient(135deg, var(--gold-highlight) 0%, #f0c674 100%);
    color: var(--dark-shade);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.register-btn:hover::before {
    left: 100%;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.register-btn:active {
    transform: translateY(-1px);
}

.certificate-note {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 25px auto;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(5px);
}

.certificate-note p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.5;
}

.certificate-note strong {
    color: #d4af37;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-title {
    color: var(--neutral-white);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--gold-highlight);
    font-size: 1rem;
}

.cme-notice {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: center;
}

.cme-notice p {
    color: var(--gold-highlight);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--neutral-white);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--gold-highlight);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--neutral-white);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--neutral-white);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-highlight);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-shade) 100%);
    color: var(--neutral-white);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 105, 145, 0.4);
}

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

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--neutral-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.success-message {
    display: none;
    text-align: center;
    color: var(--gold-highlight);
    font-size: 1.2rem;
    font-weight: 600;
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    font-size: 3rem;
    color: var(--gold-highlight);
    margin-bottom: 1rem;
    animation: successIcon 0.8s ease-out;
}

@keyframes successIcon {
    0% {
        transform: scale(0) rotate(180deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

@media (max-width: 768px) {
    .event-title {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        padding: 2rem;
    }

    .register-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .certificate-note {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .certificate-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .event-title {
        font-size: 1.8rem;
    }

    .logo-placeholder {
        width: 130px;
        height: 130px;
        margin: 0 0.5rem;
    }
}