/* =========================================================
   PHENOM Health Site Styles
   Organized: 2026-07-02
   Note: page-title h1 no longer auto-capitalizes text.
========================================================= */


/* =========================================================
   1. Global Reset + Base
========================================================= */

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

body {
    font-family: "Inter", sans-serif;
    background: #D9DEE5;
    color: #102A43;
}


/* =========================================================
   2. Header / Hero
========================================================= */

.hero {
    background: #102A43;
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.hero p,
.hero-subtitle {
    color: #D9DEE5;
    font-size: 1.1rem;
}

.hero-subtitle {
    max-width: 650px;
    margin: 20px auto 0;
    line-height: 1.7;
}


/* =========================================================
   3. Logos
========================================================= */

.logo {
    width: 420px;
    max-width: 90%;
    height: auto;
    margin-bottom: 24px;
}

.subLogo {
    width: 260px;
    max-width: 90%;
    height: auto;
    margin-bottom: 24px;
}


/* =========================================================
   4. Page Titles
========================================================= */

.page-title {
    text-align: center;
    margin: 20px 0 10px;
}

.page-title h1 {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 3rem;
    color: #ffffff;
    letter-spacing: 3px;
}

.page-title h2 {
    margin-top: 8px;
    font-family: "Cormorant Garamond", serif;
    font-weight: 600;
    font-size: 2rem;
    color: #547696;
    letter-spacing: 0.05em;
}


/* =========================================================
   5. Layout
========================================================= */

.container {
    max-width: 1200px;
    margin: 60px auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.content-section,
.form-section {
    display: flex;
    justify-content: center;
    padding: 40px 20px 80px;
}


/* =========================================================
   6. Cards
========================================================= */

.card {
    width: 300px;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(16, 42, 67, 0.12);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 42, 67, 0.18);
}

.card img {
    width: 210px;
    margin-bottom: 24px;
}

.card h2 {
    margin-bottom: 24px;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    color: #102A43;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* =========================================================
   7. Content Panels
========================================================= */

.content-panel {
    width: 100%;
    max-width: 750px;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.content-panel h2 {
    margin-bottom: 24px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: #17304A;
}

.content-panel p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4A5568;
    text-align: left;
}


/* =========================================================
   8. Forms
========================================================= */

.create-form {
    width: 100%;
    max-width: 650px;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.form-group label {
    margin-bottom: 8px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    color: #17304A;
}

.form-group label span {
    color: #B42318;
}

.form-group label small {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    color: #486581;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid #CBD5E0;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    color: #102A43;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #486581;
    box-shadow: 0 0 0 3px rgba(72, 101, 129, 0.15);
}

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

.form-helper-text {
    display: block;
    margin-top: 6px;
    margin-bottom: 14px;
    color: #486581;
    font-size: 0.9rem;
}


/* =========================================================
   9. Form Validation
========================================================= */

.error {
    border-color: #B42318 !important;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12) !important;
}

.field-error {
    margin-top: 8px;
    color: #B42318;
    font-size: 0.85rem;
    font-weight: 600;
}


/* =========================================================
   10. Option Buttons
========================================================= */

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.option-button {
    min-height: 52px;
    padding: 12px 18px;
    border: 1px solid #CBD5E0;
    border-radius: 999px;
    background: #ffffff;
    color: #102A43;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.option-button:hover {
    border-color: #486581;
    background: #F4F7FA;
}

.option-button.selected {
    background: #2F5BEA;
    color: #ffffff;
    border-color: #2F5BEA;
}


/* =========================================================
   11. Other Option
========================================================= */

.other-textarea {
    width: 100%;
    margin-top: 24px;
}

.character-count {
    display: block;
    margin-top: 10px;
    color: #486581;
    font-size: 0.85rem;
}


/* =========================================================
   12. Buttons
========================================================= */

.button {
    display: inline-block;
    padding: 14px 30px;
    border: none;
    border-radius: 999px;
    background: #2F5BEA;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.25s ease;
}

.button:hover {
    background: #486581;
}

.create-form .button {
    width: 100%;
}

.content-panel .button {
    margin-top: 20px;
    padding: 16px 42px;
    background: #17304A;
    transition: 0.2s ease;
}

.content-panel .button:hover {
    background: #486581;
    transform: translateY(-2px);
}

.small-button {
    padding: 10px 14px;
    font-size: 0.85rem;
}


/* =========================================================
   13. Submit Animation
========================================================= */

.submit-animation {
    display: none;
    margin-top: 28px;
    text-align: center;
}

.submit-animation.active {
    display: block;
}

.submit-animation-logo {
    width: 90px;
    max-width: 40%;
    animation: phenomPulse 1.2s ease-in-out infinite;
}

@keyframes phenomPulse {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.14);
        opacity: 1;
    }

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


/* =========================================================
   14. Footer
========================================================= */

footer {
    margin-top: 60px;
    padding: 25px;
    color: #486581;
    text-align: center;
}


/* =========================================================
   15. Utility Classes
========================================================= */

.indent-paragraph {
    text-indent: 2em;
}

.mono-text {
    font-family: monospace;
    font-size: 0.88rem;
}


/* =========================================================
   16. Admin Layout
========================================================= */

.admin-section {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 50px 0;
}

.admin-toolbar {
    display: grid;
    grid-template-columns: 1fr 180px auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}

.admin-toolbar input,
.admin-toolbar select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8dbe3;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-status {
    margin-bottom: 16px;
    font-size: 0.95rem;
    opacity: 0.75;
}


/* =========================================================
   17. Admin Cards
========================================================= */

.admin-card {
    padding: 22px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.admin-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.admin-card strong {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}


/* =========================================================
   18. Admin Table
========================================================= */

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.admin-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #edf0f5;
}

.admin-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.7;
}

.admin-table td {
    font-size: 0.92rem;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: #f6f8ff;
}


/* =========================================================
   19. Admin Login
========================================================= */

.admin-login-section {
    width: min(460px, 92%);
    margin: 0 auto;
    padding: 50px 0;
}

.admin-login-card {
    padding: 32px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.admin-login-card h3 {
    margin-bottom: 8px;
    font-size: 1.6rem;
}

.admin-login-card p {
    margin-bottom: 24px;
    color: #486581;
}


/* =========================================================
   20. Modal
========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 18, 35, 0.55);
}

.modal-card {
    width: min(760px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 26px;
    border-bottom: 1px solid #edf0f5;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-header p {
    margin: 6px 0 0;
    opacity: 0.7;
}

.modal-close-button {
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.modal-content {
    padding: 26px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 26px 26px;
}


/* =========================================================
   21. Detail Grid
========================================================= */

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.detail-item {
    padding: 16px;
    background: #f8f9fc;
    border-radius: 12px;
}

.detail-item span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.65;
}

.detail-item strong {
    display: block;
    font-size: 0.98rem;
    word-break: break-word;
}

.detail-item-wide {
    grid-column: 1 / -1;
}


/* =========================================================
   22. Status Controls
========================================================= */

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-new {
    background: #edf2ff;
    color: #2f5bea;
}

.status-contacted {
    background: #fff7e6;
    color: #a15c00;
}

.status-in-progress {
    background: #ecfdf3;
    color: #027a48;
}

.status-closed {
    background: #f2f4f7;
    color: #344054;
}

.status-archived {
    background: #fef3f2;
    color: #b42318;
}

.status-edit-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-edit-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8dbe3;
    border-radius: 10px;
    font-family: inherit;
}


/* =========================================================
   23. Notes
========================================================= */

.notes-list {
    margin-top: 8px;
    margin-bottom: 16px;
}

.note-card {
    padding: 14px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid #edf0f5;
    border-radius: 12px;
}

.note-card p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.note-card small {
    color: #486581;
    font-size: 0.8rem;
}

.empty-notes {
    margin-bottom: 14px;
    color: #486581;
    font-style: italic;
}

.note-entry {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note-entry textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8dbe3;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.note-entry textarea:focus {
    outline: none;
    border-color: #486581;
    box-shadow: 0 0 0 3px rgba(72, 101, 129, 0.15);
}


/* =========================================================
   24. Responsive Styles
========================================================= */

@media (max-width: 900px) {
    .admin-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
    }

    .subLogo {
        width: 180px;
    }

    .page-title h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .page-title h2 {
        font-size: 1.5rem;
    }

    .form-section {
        padding: 30px 16px 60px;
    }

    .create-form {
        padding: 24px;
    }

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

    .option-button {
        width: 100%;
        text-align: center;
    }
}

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

    .modal-card {
        max-height: 92vh;
    }
}

@media (max-width: 560px) {
    .admin-summary-grid {
        grid-template-columns: 1fr;
    }
}
