/* --------------------------------
   GLOBAL RESET + TYPOGRAPHY
-----------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #222;

    background-image: url("../assets/dental-clinic-bg-3.jpg");
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;

    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.5);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ff8520;
    text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.50);
}

/* --------------------------------
   UNIVERSAL SECTION CONTAINER
-----------------------------------*/
section {
    padding: 30px;
    max-width: 1000px;
    margin: 10px auto;
    background: rgba(255,255,255,0.50);
    border-radius: 12px;
}

section ul {
    padding-left: 1.2rem;
    margin: 10px 10px;
}

section li {
    margin: 0.4rem 0;
}

.text-bold {
    font-weight: 600;
}

/* --------------------------------
   HEADER
-----------------------------------*/
.ded-header {
    text-align: center;
    background: rgba(255,255,255,0.40);
    border-bottom: 2px solid #eee;

    display: flex;
    flex-direction: column;   /* ← THIS is the missing piece */
    justify-content: center;
    align-items: center;
}


.ded-header h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
    font-weight: 700;
    color: #ff8520;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.50);
}

.ded-subtitle {
    font-size: 1.3rem;
    color: #666;
}

.ded-header-image {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
    margin-left: 80px;   /* ← offset to the right */
}

.ded-header-image-sub {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;

}

/* --------------------------------
   HERO SECTION
-----------------------------------*/
.hero {
    text-align: center;
    padding: 1.5rem;
    margin-top: 10px;
    background: rgba(255,255,255,0.30);
    border-bottom: 1px solid #e0e7ff;
}

.hero h2 {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.50);
}

/* Global CTA button */
.cta-btn {
    display: block;
    margin: 1.5rem auto 2rem;
    border: 1px solid #ff8520;
    padding: 0.6rem 1rem;
    max-width: 400px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: #ff8520;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.50);
}

.cta-btn:hover {
    background: white;
    border: 1px solid #ff8520;
    color: #ff8520;
}

/* Form-specific CTA */
.cta-btn--form {
    display: block;
    margin: 2.5rem auto 2rem;
    border: 1px solid #ff8520;
    padding: 0.6rem 1rem;
    max-width: 400px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: #ff8520;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.50);
}

/* --------------------------------
   NEXT EVENT
-----------------------------------*/
.next-event-banner {
    display: block;
    margin: 0 auto 2rem;
    border: 1px solid #ff8520;
    padding: 0.6rem 1rem;
    max-width: 400px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: #ff8520;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.50);
}

.next-event-banner:hover {
    background: white;
    border: 1px solid #ff8520;
    color: #ff8520;
}

.event-card {
    display: flex;
    flex-direction: column;
    color: #333;
    align-items: center;     /* horizontal centering */
    text-align: center;      /* center text */
    justify-content: flex-start;
    text-decoration: none;

    padding: 1.5rem;
    border: 1px solid #ff8520;
    border-radius: 8px;
    background: #f4f4db;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.event-card:hover {
    outline: 2px solid #ff8520;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.nextevent-card {
    display: flex;
    flex-direction: column;
    color: #333;
    align-items: center;     /* horizontal centering */
    text-align: center;      /* center text */
    justify-content: flex-start;
    text-decoration: none;

    padding: 1.5rem;
    border: 1px solid #ff8520;
    border-radius: 8px;
    background: rgba(255, 133, 32, 0.10);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.event-btn {
    display: inline;
    margin: 0.75rem auto 0.5rem;
    padding: 0.2rem 0.75rem;
    border: 1px solid #647b8c;
    background: #647b8c;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.15s ease;
}

.event-btn:hover {
    background: white;
    color: #647b8c;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.event-note {
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.2rem 0.2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.event-note-conf {
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.2rem 0.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff8520;
}

/* --------------------------------
   PRICING SECTION (Unified)
-----------------------------------*/
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 2rem auto;
}


.pricing-card {
    display: flex;
    flex-direction: column;
    align-items: center;     /* horizontal centering */
    text-align: center;      /* center text */
    justify-content: flex-start;

    padding: 1.5rem;
    border: 1px solid #ff8520;
    border-radius: 8px;
    background: #f4f4db;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}


.pricing-card:hover {
    outline: 2px solid #ff8520;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.pricing-card .price {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.register-text {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #647b8c;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.option-card:hover .register-text {
    color: #ff8520;
    font-weight: 700;
    font-size: 1rem;
}


/* --------------------------------
   REGISTRATION FORMS (Unified)
-----------------------------------*/
.reg-form {
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eee;
    background: rgba(255,255,255,0.6);
}

.reg-form h4 {
    margin-top: 0;
}

.reg-form .lead {
    margin-bottom: 1rem;
    color: #555;
}

.form label {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.form input,
.form select {
    width: 70%;
    padding: 0.7rem;
    margin-top: 0.25rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.form .checkbox {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Participants */
#participants {
    margin-top: 1.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.participant {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    background: #f7f7f7;
}

/* Success message */
#success-message {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background: #f0f9f0;
    border: 1px solid #c7e8c7;
}

#success-message h4 {
    margin-top: 0;
}

/* Utility */
.hidden {
    display: none;
}

/* ========================= */
/* FADE-IN                   */
/* ========================= */

.fade-in {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.35s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================= */
/* FADE-OUT ON .reg-form     */
/* ========================= */

.reg-form.fade-out {
    animation: fadeOut 0.45s ease-out forwards;
}



@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

button.locked {
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.45s ease-out; /* slower, smoother */
}



.disabled-country {
    opacity: 0.6;
    pointer-events: none;
}

/* --------------------------------
   SHARE BUTTONS
-----------------------------------*/
.share {
    text-align: center;   /* centers the heading AND the buttons block */
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: center;      /* centers horizontally */
    align-items: center;          /* optional: centers vertically */
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff8520;
    color: white;
    border: 1px solid #ff8520;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.50);
    transition: background 0.2s ease, transform 0.15s ease;
}

.share-btn:hover {
    font-weight: 520;
    border: 1px solid #ff8520;
    background: rgba(255, 133, 32, 0.30);
    transform: translateY(-2px);
}


.instructor-photo-right {
    float: left;
    display: block;
    width: 100%;
    max-width: 160px;
    margin: 10px;
    border-radius: 6px;
    border: 2px solid #ff8520;
}

/* --------------------------------
   FOOTER
-----------------------------------*/
.ded-footer {
    text-align: center;
    padding: 1rem .5rem;
    color: #ff8520;
    font-weight: 600;
    font-size: 0.95rem;
    border-top: 2px solid #eee;
    margin-top: 1.5rem;
    text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.50);
}

.poster {
    display: none;
}

