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

:root {
    --primary-color: #d62057;
    --primary-dark: #8a1538;
    --primary-light: #e44e7b;
    --primary-lighter: #f4b8ca;
    --secondary-color: #9a7882;

    --success-color: #16a34a;
    --danger-color: #dc2626;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #f0dce1;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.07);
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.section:last-of-type {
    border-bottom: none;
}

.section h1 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.section-intro {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.content-block {
    margin-bottom: 40px;
}

.content-block h2 {
    font-size: 24px;
    margin: 25px 0 15px 0;
    color: var(--text-dark);
}

.content-block h3 {
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: var(--text-dark);
}

.content-block p {
    margin-bottom: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.content-block ul,
.content-block ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.content-block li {
    margin-bottom: 10px;
    color: var(--text-light);
    line-height: 1.7;
}

.content-block table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-block table tr {
    border-bottom: 1px solid var(--border-color);
}

.content-block table td {
    padding: 15px;
    text-align: left;
}

.content-block table tr:nth-child(even) {
    background-color: var(--light-bg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: #718198;
    box-shadow: var(--shadow-lg);
}

.btn-tertiary {
    background-color: var(--primary-light);
    color: var(--white);
}

.btn-tertiary:hover {
    background-color: #b11b48;
    box-shadow: var(--shadow-lg);
}

/* Forms */
.form {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

fieldset {
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    background-color: var(--white);
}

legend {
    font-weight: 600;
    color: var(--text-dark);
    padding: 0 10px;
    margin-left: -10px;
    font-size: 18px;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="file"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    cursor: pointer;
}

.form-group.checkbox label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal;
}

small {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-note {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 15px;
    font-style: italic;
}

/* Info Boxes */
.info-box {
    background-color: var(--primary-lighter);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 6px;
    margin: 25px 0;
}

.info-box h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.info-box p,
.info-box ul,
.info-box li {
    color: var(--text-dark);
}

.info-box a {
    color: var(--primary-dark);
    font-weight: 600;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.card {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card h3 {
    margin-top: 0;
    color: var(--text-dark);
}

.card p {
    color: var(--text-light);
}

.card ul {
    margin-left: 20px;
}

.card li {
    margin-bottom: 8px;
}

.card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.card a:hover {
    text-decoration: underline;
}

/* Schedule Styles */
.schedule-container {
    margin: 40px 0;
}

.schedule-day {
    margin-bottom: 50px;
}

.schedule-day h2 {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.schedule-item {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

.schedule-item .time {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 150px;
}

.schedule-item .event h3 {
    margin-top: 0;
    color: var(--text-dark);
}

.schedule-item .event p {
    margin: 5px 0;
    color: var(--text-light);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
    background-color: #f0fdf4;
    border: 2px solid var(--success-color);
    border-radius: 8px;
    margin: 30px 0;
}

.success-icon {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.success-message h1 {
    color: var(--success-color);
    margin-bottom: 10px;
}

.success-details {
    text-align: left;
    background-color: var(--white);
    padding: 30px;
    border-radius: 6px;
    margin: 30px 0;
}

.success-details ol {
    margin-left: 20px;
}

.success-details li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p,
.footer-section a,
.footer-section li {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.8;
    font-size: 14px;
}

.last-updated {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero .subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .schedule-item {
        flex-direction: column;
        gap: 10px;
    }

    .schedule-item .time {
        min-width: auto;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .section h1 {
        font-size: 28px;
    }

    .content-block h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 18px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    .form {
        padding: 20px;
    }

    fieldset {
        padding: 15px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/*Form styles*/
.conditional-field {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background-color: #f0f4ff;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.conditional-field.show {
    display: block;
}

.fieldset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    margin-top: 4px;
    width: auto;
    cursor: pointer;
}

.checkbox-item label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal;
}

/*Team page styles*/

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.team-member {
    text-align: center;
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.team-member:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.member-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-color);
    display: block;
}

.member-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 10px;
    min-height: 4.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-title {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.member-affiliation {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.member-bio {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.member-contact {
    font-size: 13px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

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

.member-contact a:hover {
    text-decoration: underline;
}

.team-section {
    margin-bottom: 60px;
}

.team-section h2 {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.placeholder-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
    border: 4px solid var(--primary-color);
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }

    .member-image,
    .placeholder-image {
        width: 140px;
        height: 140px;
    }

    .member-name {
        font-size: 16px;
    }
}

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

    .team-member {
        padding: 20px;
    }

    .member-image,
    .placeholder-image {
        width: 120px;
        height: 120px;
        font-size: 48px;
    }
}