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

:root {
    /* ACBSP Brand Colors */
    --primary-color: #005596;
    --secondary-color: #0075b0;
    --accent-gold: #dfc07a;
    --accent-gold-dark: #a98024;
    --accent-cyan: #6fd4e4;
    --accent-green: #b7bf34;
    --accent-orange: #f47d30;
    --success-color: #b7bf34;
    --error-color: #f47d30;
    --warning-color: #fecb00;
    
    /* Text Colors */
    --text-color: #555555;
    --text-light: #777777;
    --text-heading: #005596;
    
    /* Borders & Backgrounds */
    --border-color: #6fd4e4;
    --border-light: #d4f3f7;
    --bg-light: #f3fcfd;
    --bg-cyan-light: rgba(111, 212, 228, 0.1);
    --white: #ffffff;
    
    /* Shadows - keeping your soft shadow style */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.08);
}

body {
    font-family: "Open Sans", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--white);
    font-size: 16px;
}

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

#SpTitleBar{
    display: none;
}

/* ===========================
   Tab Navigation
   =========================== */
.tab-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-family: "Open Sans Condensed", Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--secondary-color);
    background-color: var(--bg-cyan-light);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--accent-gold);
    background-color: var(--bg-cyan-light);
}

/* ===========================
   Tab Content
   =========================== */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Section Headers
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h1 {
    font-family: Garamond, "Times New Roman", serif;
    font-size: 36px;
    line-height: 45px;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--primary-color);
}

.section-header .subtitle {
    font-size: 18px;
    line-height: 27px;
    color: var(--text-color);
    max-width: 900px;
    margin: 0 auto;
}

/* ===========================
   About Section
   =========================== */
.about-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--bg-cyan-light), var(--white));
    border-radius: 5px;
    margin-bottom: 50px;
}

.about-hero h1 {
    font-family: Garamond, "Times New Roman", serif;
    font-size: 42px;
    line-height: 52px;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.about-hero .lead {
    font-size: 18px;
    line-height: 27px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-color);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 5px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background-color: #7EC4CF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.feature-card h3 {
    font-family: Garamond, "Times New Roman", serif;
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-weight: bold;
}

.feature-card p {
    font-size: 16px;
    line-height: 24px;
    color: var(--text-color);
    margin: 0;
}

.info-section {
    margin-bottom: 50px;
    border-top-style: solid;
    border-width: 1px;
    border-color: var(--border-light);
    padding-top: 25px;
}

.info-section.center {
    text-align: center;
}

.info-section h2 {
    font-family: Garamond, "Times New Roman", serif;
    font-size: 30px;
    line-height: 38px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.info-section p {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 15px;
}

.info-section .lead {
    line-height: 27px;
    margin-bottom: 20px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background-color: var(--accent-cyan);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Garamond, "Times New Roman", serif;
    font-size: 24px;
    font-weight: bold;
}

.step-content h4 {
    font-family: Garamond, "Times New Roman", serif;
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: bold;
}

.step-content p {
    font-size: 16px;
    line-height: 24px;
    margin: 0;
}

.login-prompt {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-cyan-light);
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.login-prompt h3 {
    font-family: Garamond, "Times New Roman", serif;
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

.login-prompt p {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 25px;
}

/* ===========================
   Header (removed for CMS integration)
   =========================== */
header {
    display: none;
}

/* ===========================
   Actions Bar (removed)
   =========================== */
.actions-bar {
    display: none;
}

/* ===========================
   Buttons
   =========================== */
#fe-lp .btn {
    padding: 10px 30px;
    font-size: 18px;
    font-weight: bold;
    font-family: "Open Sans Condensed", Arial, sans-serif;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.5s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--accent-gold);
    background-image: url("https://acbsp.org/resource/resmgr/images/landing-pages/gold-button-background-v02.png");
    color: var(--white);
    border-style: solid;
    border-width: 0px 2px 2px 0px;
    border-color: var(--accent-gold-dark);
}

.btn-primary:hover {
    background-color: var(--accent-gold-dark);
    border-color: var(--accent-gold);
    background-position: 100px;
    text-shadow: 0px 0px 3px #fbebc8;
    cursor: pointer;
}

.btn-secondary {
    background: none;
    color: var(--accent-gold);
    border-style: solid;
    border-width: 2px;
    border-color: var(--accent-gold);
}

.btn-secondary:hover {
    background: none;
    color: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
}

.btn-outline {
    background: none;
    color: var(--accent-gold);
    border-style: solid;
    border-width: 2px;
    border-color: var(--accent-gold);
}

.btn-outline:hover {
    background: none;
    color: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
}

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

/* ===========================
   Filters Section
   =========================== */
.filters-section {
    background: var(--bg-cyan-light);
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
    border-style: solid;
    border-width: 1px;
    border-color: var(--border-color);
}

.filters-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: Garamond, "Times New Roman", serif;
    font-size: 30px;
    line-height: 38px;
    font-weight: bold;
    text-align: center;
}

.filters-container {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}

.filter-group input,
.filter-group select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 16px;
    margin-bottom: 0px;
    background-color: var(--white);
    color: var(--text-color);
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-group select {
    padding-right: 35px;
    background-image: url("https://acbsp.org/resource/resmgr/images/select-arrow-padded-2.svg");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 25px 10px;
    cursor: pointer;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
    padding-bottom: 2px;
}

.filter-actions .btn-secondary {
    background-color: var(--accent-gold);
    background-image: url("https://acbsp.org/resource/resmgr/images/landing-pages/gold-button-background-v02.png");
    color: var(--white);
    border: none;
    border-style: solid;
    border-width: 0px 2px 2px 0px;
    border-color: var(--accent-gold-dark);
    padding: 10px 20px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: "Open Sans Condensed", Arial, sans-serif;
    text-transform: uppercase;
    transition: all 0.5s ease;
}

.filter-actions .btn-secondary:hover {
    background-color: var(--accent-gold-dark);
    border-color: var(--accent-gold);
    background-position: 100px;
    text-shadow: 0px 0px 3px #fbebc8;
}

.btn-clear {    
    background-color: transparent;
    border: 2px solid #a0a0a0;
    color: #a0a0a0;
    font-size: 24px;
    line-height: 1;
    padding: 10px 14px;
    height: 46px;
    min-width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-clear:hover {
    background-color: #a0a0a0;
    border-color: #5a6268;
    color: var(--white);
}

/* ===========================
   Directory Section
   =========================== */
.directory-section {
    min-height: 400px;
}

.loading-indicator {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.directory-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.professor-card {
    background: var(--white);
    padding: 25px;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border-style: solid;
    border-width: 1px;
    border-color: var(--border-light);
}

.professor-card .card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.professor-card .headshot-container {
    flex-shrink: 0;
}

.professor-card .headshot {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.professor-card .headshot-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-cyan-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
    border: 2px solid var(--border-color);
}

.professor-card .name-section {
    flex: 1;
    min-width: 0;
}

.professor-card .professor-name {
    color: var(--primary-color);
    margin: 0 0 5px 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: bold;
}

.professor-card .organization {
    color: var(--text-light);
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.professor-card .title {
    color: var(--text-light);
    margin-bottom: 0px;
    font-size: 12px;
}

.professor-card .location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 12px;
}

.professor-card .geotag-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: #7EC4CF;
    border-radius: 50%;
    margin-right: 4px;
}

.professor-card .geotag-icon svg {
    width: 12px;
    height: 12px;
    color: white;
}

.professor-card .disciplines {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.professor-card .discipline-tag {
    display: inline-block;
    background: var(--bg-cyan-light);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.professor-card .contact-btn {
    width: 100%;
    padding: 10px 30px;
    background-color: var(--accent-gold);
    background-image: url("https://acbsp.org/resource/resmgr/images/landing-pages/gold-button-background-v02.png");
    color: var(--white);
    border: none;
    border-style: solid;
    border-width: 0px 2px 2px 0px;
    border-color: var(--accent-gold-dark);
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    font-family: "Open Sans Condensed", Arial, sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s ease;
    margin-top: auto;
    line-height: 30px;
}

.professor-card .contact-btn:hover {
    background-color: var(--accent-gold-dark);
    border-color: var(--accent-gold);
    background-position: 100px;
    text-shadow: 0px 0px 3px #fbebc8;
}

#editProfileFromContactBtn{
    background: none;
    padding: 0px;
    color: #0075b0;
    border: none;
    cursor: pointer;
}

#editProfileFromContactBtn{
    color: #005596;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 5px;
    border-style: solid;
    border-width: 1px;
    border-color: var(--border-color);
}

.no-results p {
    font-size: 18px;
    line-height: 24px;
    color: var(--text-light);
}

/* ===========================
   Modal Styles
   =========================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    margin: 20px auto;
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
    border-style: solid;
    border-width: 1px;
    border-color: var(--border-color);
}

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

.modal-large {
    max-width: 800px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--text-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: Garamond, "Times New Roman", serif;
    font-size: 30px;
    line-height: 38px;
    font-weight: bold;
}

.member-info {
    background: var(--bg-cyan-light);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-style: solid;
    border-width: 1px;
    border-color: var(--border-color);
}

.member-info h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-family: Garamond, "Times New Roman", serif;
    font-size: 24px;
    line-height: 30px;
    font-weight: bold;
}

.member-info p {
    margin: 5px 0;
}

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

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 16px;
    line-height: 24px;
    font-family: "Open Sans", Arial, sans-serif;
    background-color: var(--white);
    color: var(--text-color);
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group select {
    padding-right: 35px;
    background-image: url("https://acbsp.org/resource/resmgr/images/select-arrow-padded-2.svg");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 25px 10px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background-color: rgba(183, 191, 52, 0.15);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.form-message.error {
    background-color: rgba(244, 125, 48, 0.15);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ===========================
   Info Boxes
   =========================== */
.info-box {
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 25px;
    border-left: 4px solid var(--border-color);
    border-style: solid;
    border-width: 1px 1px 1px 4px;
    border-color: var(--border-color);
    background-color: var(--bg-cyan-light);
}

.info-box.success {
    border-left-color: var(--success-color);
    background-color: rgba(183, 191, 52, 0.1);
}

.info-box.error {
    border-left-color: var(--error-color);
    background-color: rgba(244, 125, 48, 0.1);
}

.info-box p {
    margin: 10px 0;
    line-height: 24px;
}

.info-box ul {
    margin: 10px 0 10px 20px;
}

.info-box a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.info-box a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

#profileLoginPrompt p {
    margin-bottom: 25px;
}

/* ===========================
   Step Content
   =========================== */
.step-content {
    animation: fadeIn 0.3s ease;
}

/* ===========================
   Footer (hidden for CMS integration)
   =========================== */
footer {
    display: none;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .tab-navigation {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
        min-width: auto;
        border-bottom: 1px solid var(--border-light);
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-bottom: 1px solid var(--border-light);
        border-left-color: var(--accent-gold);
    }

    .about-hero h1 {
        font-size: 32px;
        line-height: 40px;
    }

    .about-hero .lead {
        font-size: 16px;
        line-height: 24px;
    }

    .section-header h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .section-header .subtitle {
        font-size: 16px;
        line-height: 24px;
    }

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

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

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

    .filters-section h2 {
        font-size: 24px;
        line-height: 30px;
    }

    .filters-container {
        grid-template-columns: 1fr;
    }

    .directory-container {
        grid-template-columns: 1fr;
    }

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

    .modal-content {
        margin: 10px;
        padding: 20px;
        width: 95%;
    }

    .modal-content h2 {
        font-size: 24px;
        line-height: 30px;
    }

    .filter-actions,
    .form-actions {
        flex-direction: column;
    }

    .filter-actions .btn,
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .about-hero {
        padding: 30px 15px;
    }

    .section-header h1 {
        font-size: 24px;
        line-height: 30px;
    }

    .feature-icon {
        font-size: 36px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    .professor-card {
        padding: 20px;
    }

    .professor-card .contact-btn {
        font-size: 16px;
        padding: 10px 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* ===========================
   Checkbox Styling
   =========================== */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--secondary-color);
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
}

/* ===========================
   Utility Classes
   =========================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}
/* Multiselect styling */
.form-group select[multiple] {
    background-image: none; /* Remove dropdown arrow for multiselect */
    padding-right: 10px;
    height: auto;
    min-height: 120px;
}

.form-group select[multiple] option {
    padding: 8px 10px;
    border-radius: 3px;
    margin: 2px 0;
}

.form-group select[multiple] option:checked {
    background: var(--secondary-color) !important;
    color: white !important;
}

/* Filter multiselect specific styling */
.filter-group select[multiple] {
    background-image: none;
    padding-right: 10px;
}