/* =========================================================
   Conference Platform Theme
   Visual direction: clean turquoise/white style used by sponsor_registrations_table.php
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* =========================================================
   Base Reset / Variables
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --font-sans: "Montserrat", Arial, Helvetica, sans-serif;

    --color-primary: #00b8ad;
    --color-primary-dark: #008f86;
    --color-primary-light: #41d7cf;
    --color-primary-soft: #e9fffc;

    --color-accent: #00b8ad;
    --color-accent-dark: #008f86;
    --color-accent-soft: #e9fffc;

    --color-bg: #f7f8fa;
    --color-bg-gradient: linear-gradient(180deg, #ffffff 0%, #f7f8fa 42%, #f7f8fa 100%);
    --color-surface: #ffffff;
    --color-surface-alt: #f8fbfb;
    --color-surface-muted: #eef7f6;

    --color-text: #1f1f1f;
    --color-text-soft: #55595d;
    --color-text-muted: #6f7478;

    --color-border: #dfe8e8;
    --color-border-soft: #e8f0f0;
    --color-border-strong: #bcd6d4;

    --color-success-bg: #e8f7ed;
    --color-success-text: #176b35;
    --color-warning-bg: #fff7d6;
    --color-warning-text: #8a6d1d;
    --color-error-bg: #fdeaea;
    --color-error-text: #b42318;
    --color-info-bg: #e9fffc;
    --color-info-text: #008f86;

    --shadow-xs: 0 2px 8px rgba(0, 184, 173, 0.08);
    --shadow-sm: 0 12px 30px rgba(0, 184, 173, 0.08);
    --shadow-md: 0 18px 46px rgba(0, 184, 173, 0.10);

    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 30px;
    --container-width: 1360px;
    --transition: 0.18s ease;
}

body {
    margin: 0;
    background: var(--color-bg-gradient);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================================
   Typography
   ========================================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.75em;
    color: #111111;
    font-family: var(--font-sans);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(26px, 3.4vw, 42px);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(22px, 2.2vw, 30px);
}

h3 {
    font-size: 20px;
}

h4 {
    font-size: 17px;
}

p,
ul,
ol {
    margin: 0 0 1rem;
}

.small {
    font-size: 13px;
    color: var(--color-text-muted);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-soft {
    color: var(--color-text-soft);
}

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

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

/* =========================================================
   Links
   ========================================================= */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition), border-color var(--transition), background var(--transition);
}

a:hover,
a:focus {
    color: var(--color-primary-dark);
    text-decoration: none;
}

/* =========================================================
   Layout
   ========================================================= */
.container,
.container-narrow,
.container-wide {
    margin: 0 auto;
}

.container {
    width: min(1360px, calc(100% - 32px));
}

.container-narrow {
    width: min(920px, calc(100% - 32px));
}

.container-wide {
    width: min(1480px, calc(100% - 32px));
}

.page-section {
    padding: 34px 0 56px;
    background: var(--color-bg);
}

.w-100 {
    width: 100%;
}

.hidden {
    display: none !important;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    color: var(--color-text);
    border-bottom: 1px solid #eef3f3;
    box-shadow: 0 2px 12px rgba(16, 24, 40, 0.035);
}

.topbar {
    min-height: 104px;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand-wrap,
.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-link {
    text-decoration: none;
}

.logo-title {
    color: #111111;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.logo-img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 70px !important;
    object-fit: contain;
}

.logo-link img,
.brand-wrap img {
    width: auto !important;
    height: auto !important;
}

.nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 0;
    border-radius: 0;
    border-bottom: 1px solid transparent;
    color: #676767;
    line-height: 1.1;
    white-space: nowrap;
}

.nav a:hover,
.nav a:focus {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.nav a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.nav a:first-child,
.nav a.btn-external,
.nav a.btn-gold {
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    padding: 10px 24px;
    color: var(--color-primary);
    background: #ffffff;
}

.nav a:first-child:hover,
.nav a:first-child:focus,
.nav a.btn-external:hover,
.nav a.btn-external:focus,
.nav a.btn-gold:hover,
.nav a.btn-gold:focus {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

.nav a:first-child.active,
.nav a.btn-external.active,
.nav a.btn-gold.active {
    background: #ffffff;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* =========================================================
   Hero / Intro
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 35%, rgba(255, 255, 255, 0.22) 0 90px, transparent 92px),
        linear-gradient(135deg, #00b8ad 0%, #61d9d2 54%, #86e3dd 100%);
    color: #ffffff;
    padding: 74px 0 92px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 36%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.18), transparent 34%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -70px;
    height: 110px;
    background: var(--color-bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin-bottom: 14px;
    color: #ffffff;
    text-transform: uppercase;
}

.hero p {
    max-width: 980px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 17px;
    font-weight: 600;
}

.hero-buttons,
.form-actions,
.table-actions,
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.page-banner {
    padding: 46px 0 32px;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border-soft);
}

.page-banner h1,
.page-banner h2 {
    margin-bottom: 8px;
    color: #111111;
}

.page-banner p {
    margin-bottom: 0;
    max-width: 980px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Optional section used by standalone pages */
.hero-wave {
    position: relative;
    min-height: 168px;
    background: var(--color-primary);
    overflow: hidden;
}

.hero-wave::after {
    content: "";
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -70px;
    height: 110px;
    background: #ffffff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.page-intro {
    background: #ffffff;
    padding: 78px 0 34px;
}

.page-intro h1 {
    margin: 0 0 12px;
    color: #111111;
}

.page-intro p {
    margin: 0;
    max-width: 980px;
    color: var(--color-text-muted);
    font-size: 16px;
    font-weight: 500;
}

/* =========================================================
   Cards / Panels
   ========================================================= */
.card {
    margin-bottom: 22px;
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid #e3eeee;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.card h2 {
    margin: 0 0 16px;
    color: #111111;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.card h3 {
    color: #111111;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border-soft);
}

.card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #111111;
}

.card-subtitle {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--color-text-muted);
}

/* =========================================================
   Stats
   ========================================================= */
.stats-grid,
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e3eeee;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--color-primary);
}

.stat-label,
.stat-card h3 {
    margin: 0 0 8px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-value,
.stat-number {
    color: var(--color-primary-dark);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.05;
}

.stat-meta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--color-text-soft);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.btn:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(0, 184, 173, 0.18);
    outline-offset: 2px;
}

.btn-primary,
button,
input[type="submit"],
input[type="button"] {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 184, 173, 0.18);
}

.btn-primary:hover,
.btn-primary:focus,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

.btn-accent,
.btn-gold {
    background: #ffffff;
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: none;
}

.btn-accent:hover,
.btn-accent:focus,
.btn-gold:hover,
.btn-gold:focus {
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

.btn-danger {
    background: #b42318;
    color: #ffffff;
}

.btn-danger:hover,
.btn-danger:focus {
    background: #912018;
    color: #ffffff;
}

/* =========================================================
   Forms
   ========================================================= */
form label,
label {
    display: inline-block;
    margin-bottom: 7px;
    color: #202020;
    font-size: 14px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px;
    padding: 12px 13px;
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font: inherit;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: #9aa3a7;
}

input:hover,
textarea:hover,
select:hover {
    border-color: var(--color-border-strong);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 184, 173, 0.18);
    outline: none;
}

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

.form-row,
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.form-help,
.help-text {
    margin: -6px 0 16px;
    color: var(--color-text-muted);
    font-size: 14px;
    font-weight: 500;
}

.form-section {
    margin-bottom: 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border-soft);
}

.form-section:last-child {
    border-bottom: 0;
}

/* =========================================================
   Toolbar / Filters
   ========================================================= */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.toolbar-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: end;
}

.search-box {
    min-width: 260px;
    flex: 1 1 280px;
}

.search-box input {
    margin-bottom: 0;
}

.filter-select,
.filter-select select {
    min-width: 180px;
}

/* =========================================================
   Alerts / Messages
   ========================================================= */
.message {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #bde5ca;
    border-radius: 14px;
    background: var(--color-success-bg);
    color: var(--color-success-text);
    font-weight: 700;
}

.message-success {
    background: var(--color-success-bg);
    border-color: #bde5ca;
    color: var(--color-success-text);
}

.message-error {
    background: var(--color-error-bg);
    border-color: #f4c7c7;
    color: var(--color-error-text);
}

.message-warning {
    background: var(--color-warning-bg);
    border-color: #f3df9a;
    color: var(--color-warning-text);
}

/* =========================================================
   Tables
   ========================================================= */
.table-wrap {
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    border: 1px solid var(--color-border);
    padding: 10px;
    vertical-align: top;
}

th {
    background: var(--color-primary);
    color: #ffffff;
    text-align: left;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

td {
    color: var(--color-text);
    font-size: 14px;
    background: #ffffff;
}

tbody tr:nth-child(even) td {
    background: #fbfefe;
}

tbody tr:hover td {
    background: #f1fffd;
}

.table-actions .btn,
.table-actions button,
.table-actions a {
    min-height: 34px;
    padding: 8px 14px;
    font-size: 13px;
}

.sponsor-hotel-table input,
.sponsor-hotel-table select,
.table-wrap input,
.table-wrap select {
    min-width: 100%;
    margin-bottom: 0;
    border-radius: 10px;
    padding: 8px;
}

.row-number {
    text-align: center;
    font-weight: 800;
    color: var(--color-primary-dark);
}

.readonly-money,
.js-accommodation-total,
.js-gala-total,
.js-participant-total {
    background: #f7fbfb !important;
    font-weight: 800;
    text-align: right;
}

.summary-table td:first-child {
    background: #f7fbfb;
}

.summary-table td:last-child {
    text-align: right;
    font-weight: 800;
}

.summary-grand td {
    background: var(--color-primary) !important;
    color: #ffffff;
    font-size: 18px;
}

/* =========================================================
   Meta Blocks
   ========================================================= */
.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.meta-item {
    padding: 14px 15px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border-soft);
    border-radius: 14px;
}

.meta-label {
    display: block;
    margin-bottom: 5px;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.meta-value {
    color: var(--color-primary-dark);
    font-size: 15px;
    font-weight: 700;
    word-break: break-word;
}

/* =========================================================
   Badges
   ========================================================= */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-accepted {
    background: #e6f7f5;
    color: #0a6f69;
    border: 1px solid #bfe9e5;
}

.badge-muted {
    background: #eef6f5;
    color: #5f7388;
    border: 1px solid #d7ebe8;
}

.badge-program {
    background: #dff3f1;
    color: #0f9f97;
    border: 1px solid #aee3df;
}

.badge-submitted {
    background: #e9fffc;
    color: #008f86;
    border: 1px solid #bfe9e5;
}

.badge-under-review {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
    border: 1px solid #f3df9a;
}

.badge-rejected {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid #f4c7c7;
}

.badge-draft {
    background: #eef2f7;
    color: #475467;
    border: 1px solid #dbe4ee;
}

.badge-admin,
.badge-reviewer {
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    border: 1px solid #bfe9e5;
}

/* =========================================================
   Tabs
   ========================================================= */
.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border-soft);
}

.tab-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--color-text-soft);
    font-size: 14px;
    font-weight: 700;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.tab-link:hover,
.tab-link:focus {
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

.tab-link.is-active {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 184, 173, 0.16);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    margin-top: 44px;
    background: #ffffff;
    color: var(--color-text-muted);
    padding: 34px 0;
    border-top: 1px solid #eef3f3;
}

.site-footer h3 {
    margin-top: 0;
    color: #111111;
}

.site-footer a {
    color: var(--color-primary);
    font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--color-primary-dark);
}

/* =========================================================
   Utilities
   ========================================================= */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .topbar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 96px;
        gap: 12px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        gap: 12px;
        font-size: 13px;
    }

    .logo-img {
        max-width: 180px !important;
        max-height: 54px !important;
    }
}

@media (max-width: 800px) {
    body {
        font-size: 14px;
    }

    .site-header {
        position: relative;
    }

    .topbar {
        min-height: 86px;
        padding: 12px 0;
    }

    .nav {
        gap: 10px;
        font-size: 12px;
    }

    .nav a,
    .nav a:first-child,
    .nav a.btn-external,
    .nav a.btn-gold {
        min-height: 34px;
        padding: 8px 14px;
    }

    .hero {
        padding: 48px 0 76px;
    }

    .hero p,
    .page-intro p {
        font-size: 15px;
    }

    .hero-wave {
        min-height: 125px;
    }

    .page-intro {
        padding-top: 54px;
    }

    .form-row,
    .form-row-3,
    .form-grid,
    .meta-list {
        grid-template-columns: 1fr;
    }

    .toolbar {
        align-items: stretch;
    }

    .toolbar-group {
        width: 100%;
    }

    .search-box {
        min-width: 100%;
    }

    .card {
        padding: 18px;
        border-radius: 18px;
    }

    th,
    td {
        padding: 9px;
    }
}

@media (max-width: 600px) {
    .container,
    .container-narrow,
    .container-wide {
        width: min(100% - 24px, var(--container-width));
    }

    .nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .nav a {
        flex: 0 0 auto;
    }

    .logo-img {
        max-width: 150px !important;
        max-height: 44px !important;
    }

    .btn,
    button,
    input[type="submit"],
    input[type="button"] {
        width: 100%;
    }

    .hero-buttons,
    .form-actions,
    .table-actions,
    .actions {
        flex-direction: column;
        align-items: stretch;
    }
}
