:root {
    --brand-primary: #f97316;
    --brand-secondary: #fb923c;
    --accent-warm-rgb: 249, 115, 22;
    --accent-warm: rgb(var(--accent-warm-rgb));
    --text-strong: #1f2937;
    --text-muted: #475467;
    --divider: rgba(var(--accent-warm-rgb), 0.18);
    --hero-yellow-start: #fef08a;
    --hero-yellow-mid: #facc15;
    --hero-orange: #f97316;
    --hero-text: #0f172a;
    --hero-gradient: radial-gradient(circle at top right, rgba(254, 240, 138, 0.65), transparent 55%),
                     radial-gradient(circle at bottom left, rgba(248, 113, 113, 0.45), transparent 45%),
                     linear-gradient(115deg, var(--hero-yellow-start) 0%, var(--hero-yellow-mid) 48%, var(--hero-orange) 100%);
    --radius-xl: 1rem;
    --radius-lg: 0.75rem;
    --radius-md: 0.5rem;
    --radius-sm: 0.35rem;
}

body {
    min-height: 100vh;
    background: #f5f6fb;
    color: var(--text-strong);
    margin: 0;
}

.hero-section {
    background: var(--hero-gradient);
    margin-bottom: 0;
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    color: var(--hero-text);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: clamp(34rem, 70vh, 42rem);
}

.hero-content {
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
    flex: 1 1 auto;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5rem);
    opacity: 0.55;
}

.hero-section::before {
    width: clamp(320px, 32vw, 520px);
    height: clamp(320px, 32vw, 520px);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
    top: -22%;
    right: -8%;
}

.hero-section::after {
    width: clamp(220px, 28vw, 400px);
    height: clamp(220px, 28vw, 400px);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(249, 115, 22, 0));
    bottom: -18%;
    left: -12%;
}

.hero-copy {
    color: var(--hero-text);
}

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

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    color: var(--hero-text);
    font-weight: 700;
    margin-bottom: 1.75rem;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.hero-title {
    color: var(--hero-text);
    text-shadow: 0 5px 18px rgba(15, 23, 42, 0.18);
    margin-bottom: 1rem;
}

.hero-lead {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtext {
    color: rgba(15, 23, 42, 0.8);
}

.hero-checklist {
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(15, 23, 42, 0.85);
    font-weight: 500;
}

.hero-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.9);
    color: #fef9c3;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.hero-actions .btn {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    border-radius: 999px;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.hero-primary-cta {
    background: #0f172a;
    border: none;
}

.hero-primary-cta:hover,
.hero-primary-cta:focus {
    background: #020617;
}

.hero-metric {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    color: var(--hero-text);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.hero-metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.65));
    color: #fef9c3;
    font-size: 1.1rem;
}

.hero-visual {
    position: relative;
    width: min(420px, 100%);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.2rem);
    z-index: 0;
}

.hero-bubble-lg {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.65), rgba(254, 240, 138, 0.2));
    top: 8%;
    right: -6%;
}

.hero-bubble-sm {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.7), rgba(249, 115, 22, 0.25));
    bottom: 10%;
    left: -8%;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.92);
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.hero-card-main {
    width: 100%;
    max-width: 320px;
}

.hero-avatar {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.7));
    color: #fef9c3;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
}

.hero-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(253, 224, 71, 0.35);
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-card-name {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--hero-text);
}

.hero-card-role {
    color: rgba(15, 23, 42, 0.6);
    font-size: 0.95rem;
}

.hero-card-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0));
}

.hero-card-line {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.05));
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(250, 204, 21, 0.25);
    color: rgba(146, 64, 14, 0.85);
}

.hero-card-secondary {
    position: absolute;
    bottom: 12%;
    right: -6%;
    padding: 1.3rem 1.5rem;
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.92);
    color: #fefce8;
    border: none;
    min-width: 190px;
    z-index: 2;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.35);
}

.hero-card-metric {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
}

.hero-card-metric-max {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.1rem;
}

.hero-card-caption {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 0.35rem;
}

@media (max-width: 991px) {
    .hero-section {
        margin-left: 0;
        margin-right: 0;
        padding: clamp(2.25rem, 10vw, 3.25rem) 0 clamp(1.5rem, 5vw, 2.25rem);
        height: auto;
        min-height: clamp(30rem, 70vh, 36rem);
    }

    .hero-visual {
        min-height: 380px;
    }

    .hero-card-secondary {
        bottom: 8%;
        right: -4%;
        transform: translate(0, 0);
    }
}

@media (max-width: 575px) {
    .hero-section {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        padding: clamp(2.5rem, 12vw, 3rem) 0 clamp(1.25rem, 6vw, 2rem);
        height: auto;
    }

    .hero-section::before,
    .hero-section::after {
        opacity: 0.35;
    }

    .hero-primary-cta {
        width: 100%;
    }

    .hero-metric {
        width: 100%;
        justify-content: center;
    }

    .hero-card-secondary {
        bottom: 4%;
        right: -2%;
    }
}

.page-main {
    padding-bottom: 4rem;
    background: #f5f6fb;
}

.form-container {
    max-width: 940px;
}

.cv-form {
    background: transparent;
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
    .hero-content {
        padding-bottom: 2rem;
    }
}

.freeform-form {
    margin-top: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: clamp(3rem, 6vw, 4.75rem);
}

.freeform-card-body {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 4vw, 2.5rem);
}

.freeform-top-row {
    align-items: stretch;
}

.freeform-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    padding: clamp(1.5rem, 3vw, 1.85rem);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.freeform-panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-strong);
}

.freeform-panel-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.template-modal,
.photo-cropper-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    overflow-y: auto;
}

.template-modal[hidden],
.photo-cropper-modal[hidden] {
    display: none !important;
}

.template-modal-open,
.photo-cropper-open {
    overflow: hidden;
}

.template-modal.is-open,
.photo-cropper-modal.is-open {
    display: flex;
}

.template-modal-backdrop,
.photo-cropper-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
}

/* Specific z-index values per overlay */
.template-modal { z-index: 1040; }

.template-modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: clamp(1.25rem, 3vw, 1.75rem);
    max-width: min(880px, 96vw);
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 0;
    box-shadow: 0 40px 120px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    max-height: min(92vh, 960px);
}

.template-modal-close,
.photo-cropper-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    background: rgba(15, 23, 42, 0.08);
    border: none;
    border-radius: 999px;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-strong);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0.55rem;
    z-index: 3;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}

.template-modal-close:hover,
.template-modal-close:focus-visible,
.photo-cropper-close:hover,
.photo-cropper-close:focus-visible {
    background: rgba(79, 70, 229, 0.15);
    transform: scale(1.05);
}

.template-modal-close img,
.photo-cropper-close img {
    display: block;
    width: 100%;
    height: 100%;
}

.template-modal-media {
    background: #0f172a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    max-height: min(70vh, 720px);
}

.template-modal-media img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.template-modal-content {
    padding: clamp(2rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(180deg, rgba(241, 244, 253, 0.9) 0%, rgba(255, 255, 255, 0.96) 100%);
    min-height: 0;
    overflow-y: auto;
}

.template-modal-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-strong);
}

.template-modal-description {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(15, 23, 42, 0.7);
}

.template-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
    justify-content: flex-end;
}

.template-modal-actions .btn {
    flex: 0 0 auto;
    min-width: 160px;
}

@media (max-width: 992px) {
    .template-modal-dialog {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        max-height: 90vh;
    }

    .template-modal-media {
        max-height: 60vh;
    }

    .template-modal-actions {
        position: sticky;
        bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 45%, #ffffff 100%);
        padding-top: 0.5rem;
    }
}

.loading-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1050;
}

.loading-modal[hidden] {
    display: none !important;
}

.loading-modal.is-open {
    display: flex;
}

.loading-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(4px);
}

.loading-modal-dialog {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 244, 249, 0.94));
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.3);
    padding: 1.5rem 1.75rem;
    max-width: 420px;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
}

.loading-spinner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 5px solid rgba(15, 23, 42, 0.12);
    border-top-color: var(--brand-primary);
    border-right-color: rgba(15, 23, 42, 0.2);
    animation: loading-spin 1s linear infinite;
}

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

.loading-copy {
    display: grid;
    gap: 0.4rem;
}

.loading-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-strong);
}

.loading-text,
.loading-tip {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.loading-tip {
    font-weight: 600;
    color: var(--brand-primary);
}

@media (max-width: 768px) {
    .template-modal {
        padding: clamp(1rem, 5vw, 2rem);
        align-items: flex-start;
    }

    .template-modal-dialog {
        width: 100%;
        max-width: none;
    }

    .template-modal-close {
        top: 0.75rem;
        right: 0.75rem;
    }
}

.freeform-alert {
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.freeform-guidance {
    background: #ffffff;
    border: 1px solid rgba(var(--accent-warm-rgb), 0.08);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.07);
}

.freeform-guidance-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guidance-topic-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.guidance-topic {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(var(--accent-warm-rgb), 0.12);
    border-radius: var(--radius-md);
    padding: 0.9rem 1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guidance-topic:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.guidance-topic-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.1rem;
    color: var(--accent-warm);
}

.guidance-topic-desc {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.freeform-textarea {
    min-height: 420px;
    resize: vertical;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: inset 0 0 0 1px rgba(var(--accent-warm-rgb), 0.12);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.freeform-textarea:focus {
    border-color: rgba(var(--accent-warm-rgb), 0.65);
    box-shadow: 0 0 0 4px rgba(var(--accent-warm-rgb), 0.15);
}

.freeform-actions {
    display: flex;
    justify-content: flex-end;
}

.contact-page {
    background: #f5f6fb;
    min-height: calc(100vh - 280px);
    display: flex;
    flex-direction: column;
}

.contact-hero {
    background: var(--hero-gradient);
    color: var(--hero-text);
    padding: clamp(3rem, 8vw, 4.5rem) 0;
    position: relative;
    overflow: hidden;
    margin-top: -2px;
}

.contact-hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.contact-hero-copy .contact-pill {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--hero-text);
}

.contact-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.contact-hero .lead {
    color: rgba(15, 23, 42, 0.75);
}

.contact-response {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(15, 23, 42, 0.75);
    font-weight: 600;
}

.contact-response-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--hero-orange);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
}

.contact-hero .btn-light {
    color: var(--hero-text);
    border-color: rgba(15, 23, 42, 0.15);
}

.contact-body {
    margin-top: -3rem;
    padding-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.08);
    height: 100%;
}

.contact-card-body {
    padding: 1.75rem;
}

.contact-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.contact-info-list {
    display: grid;
    gap: 1rem;
    margin: 0;
}

.contact-info-list dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-info-list dd {
    margin: 0;
    font-size: 1rem;
}

.contact-info-list a {
    font-weight: 600;
}

.contact-list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.75rem;
    color: var(--text-muted);
}

.contact-list li {
    line-height: 1.5;
}

.contact-card .btn {
    border-radius: var(--radius-sm);
}

.terms-page {
    background: #f5f6fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-top: -2px;
}

.terms-hero {
    background: var(--hero-gradient);
    color: var(--hero-text);
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}

.terms-hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.terms-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--hero-text);
}

.terms-hero-list {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.5rem;
    color: rgba(15, 23, 42, 0.8);
}

.terms-hero-card {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    color: var(--hero-text);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.15);
}

.terms-meta-list {
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

.terms-meta-list dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(15, 23, 42, 0.6);
    margin-bottom: 0.35rem;
}

.terms-meta-list dd {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.85);
}

.terms-meta-list a {
    color: var(--accent-warm);
    font-weight: 600;
}

.terms-hero .lead {
    color: rgba(15, 23, 42, 0.75) !important;
}

.terms-hero-card h2 {
    color: rgba(15, 23, 42, 0.6);
    letter-spacing: 0.08em;
}

.terms-body {
    margin-top: -3.5rem;
    padding-bottom: 4rem;
}

.terms-grid {
    display: grid;
    grid-template-columns: minmax(0, min(960px, 100%));
    justify-content: center;
    gap: 1.75rem;
}

.terms-content {
    background: #ffffff;
}

.terms-content {
    padding: clamp(2rem, 5vw, 3rem);
    margin: 5rem auto 0;
    width: min(960px, 100%);
}

.terms-sections {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.terms-section {
    border-bottom: 1px solid rgba(var(--accent-warm-rgb), 0.15);
    padding-bottom: 2rem;
}

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

.terms-section-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.terms-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: rgba(var(--accent-warm-rgb), 0.12);
    font-weight: 700;
    font-size: 0.95rem;
}

.terms-section h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.terms-section p {
    margin: 0;
    color: var(--text-muted);
}

.structured-page {
    background: #f5f6fb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.navbar + .structured-page::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #212529;
}

.structured-hero {
    background: var(--hero-gradient);
    color: var(--hero-text);
    padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.structured-hero-shell {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.structured-hero-copy {
    max-width: 540px;
}

.structured-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-weight: 700;
    color: var(--hero-text);
}

.structured-hero-card {
    background: rgba(255, 255, 255, 0.82);
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.15);
}

.structured-hero-list {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.35rem;
    color: rgba(15, 23, 42, 0.8);
}

.structured-hero .lead {
    color: rgba(15, 23, 42, 0.75) !important;
}

.structured-hero-card .small {
    color: rgba(15, 23, 42, 0.6);
    letter-spacing: 0.08em;
}

.structured-body {
    margin-top: -3rem;
    padding-bottom: 4rem;
}

.structured-grid {
    max-width: 960px;
    margin: 0 auto;
}

.structured-form {
    background: #fff;
    border-radius: 1.25rem;
    padding: clamp(1.5rem, 3vw, 1rem);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.structured-section {
    border: 1px solid rgba(var(--accent-warm-rgb), 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    background: rgba(255, 247, 237, 0.7);
}

.structured-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.structured-section-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--accent-warm);
    margin-bottom: 0.2rem;
}

.structured-section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.structured-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.structured-actions .btn-light {
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.structured-section textarea {
    background: #fff;
}

.structured-collection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.structured-entry {
    border: 1px dashed rgba(var(--accent-warm-rgb), 0.25);
    border-radius: 0.85rem;
    padding: 1rem 1.25rem;
    background: #fff;
}

.structured-entry .structured-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.structured-entry .structured-remove-icon {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
    background-color: currentColor;
    -webkit-mask: url("../img/trash-solid-full.svg") no-repeat center;
    mask: url("../img/trash-solid-full.svg") no-repeat center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.structured-entry .structured-remove:hover,
.structured-entry .structured-remove:focus-visible {
    background: rgba(239, 68, 68, 0.25);
    color: #991b1b;
    transform: translateY(-1px);
}

.structured-entry .structured-remove.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.structured-add-button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.structured-add-button .structured-add-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    pointer-events: none;
    background-color: currentColor;
    -webkit-mask: url("../img/add-solid-full.svg") no-repeat center;
    mask: url("../img/add-solid-full.svg") no-repeat center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.structured-add-button .structured-add-label {
    display: inline-block;
}

.structured-storage {
    display: none;
}

@media (max-width: 575px) {
    .contact-hero {
        border-radius: 0;
    }

    .contact-body {
        margin-top: -2rem;
    }
}

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

    .terms-body {
        margin-top: -2rem;
    }
}

@media (max-width: 575px) {
    .terms-hero {
        border-radius: 0;
    }

    .terms-hero-list {
        padding-left: 1rem;
    }
}

@media (max-width: 767px) {
    .freeform-panel {
        padding: 1.25rem;
    }

    .freeform-actions {
        justify-content: stretch;
    }

    .freeform-actions .btn {
        width: 100%;
    }
}

.photo-uploader {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.photo-preview {
    width: 152px;
    height: 152px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--accent-warm-rgb), 0.35), rgba(254, 240, 138, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-text);
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(var(--accent-warm-rgb), 0.3);
    margin-bottom: 0.25rem;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
}

.photo-preview:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 4px;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder {
    padding: 0 0.75rem;
    line-height: 1.2;
}

.photo-preview.has-photo .photo-placeholder {
    display: none;
}

.photo-cropper-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.photo-cropper-modal.is-open {
    display: flex;
}

.photo-cropper-modal[hidden] {
    display: none !important;
}

.photo-cropper-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
}

.photo-cropper-dialog {
    position: relative;
    background: linear-gradient(180deg, rgba(241, 244, 253, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-radius: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: 0 40px 120px rgba(15, 23, 42, 0.35);
    max-width: min(448px, 92vw);
    width: 100%;
    padding: clamp(1.4rem, 4vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 1;
    overflow: hidden;
}

.photo-cropper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.photo-cropper-title {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 600;
    color: var(--text-strong);
}

.photo-cropper-close {
    border: none;
    background: rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.55rem;
    color: var(--text-strong);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.photo-cropper-close:hover,
.photo-cropper-close:focus-visible {
    background: rgba(79, 70, 229, 0.15);
    transform: scale(1.05);
}

.photo-cropper-close img {
    display: block;
    width: 100%;
    height: 100%;
}

.photo-cropper-body {
    display: grid;
    gap: 1.5rem;
}

.photo-cropper-frame {
    position: relative;
    width: min(280px, 70vw);
    height: min(280px, 70vw);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: 0 auto;
    background: #1f2937;
    touch-action: none;
}

.photo-cropper-frame img {
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.photo-cropper-overlay {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    pointer-events: none;
    box-shadow: inset 0 0 0 9999px rgba(15, 23, 42, 0.25);
}

.photo-cropper-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.photo-cropper-controls input[type="range"] {
    width: 100%;
    accent-color: #000000;
}

.photo-cropper-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.photo-cropper-footer .btn-dark {
    min-width: 150px;
}

.photo-cropper-modal button:focus-visible,
.photo-cropper-modal input:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

body.photo-cropper-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .photo-cropper-dialog {
        padding: clamp(1.4rem, 5vw, 2rem);
    }
}

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

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
}

@media (max-width: 575px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .brand-logo-img {
        height: 32px;
    }
}

.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 3.5rem 0 2.2rem;
}

.footer-brand {
    max-width: 320px;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.footer-tagline {
    color: rgba(226, 232, 240, 0.78);
    margin: 1rem 0 0;
}

.footer-links h6 {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.9);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.4rem;
    justify-items: start;
    text-align: left;
}

@media (min-width: 992px) {
    .footer-links.text-lg-end ul {
        justify-items: end;
        text-align: right;
    }
    .footer-links.text-start h6 {
        justify-items: end;
        text-align: right;
    }
}

.footer-links a {
    color: rgba(226, 232, 240, 0.78);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-warm);
    transform: translateX(2px);
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    color: rgba(226, 232, 240, 0.65);
    font-size: 0.85rem;
}

.footer-social {
    gap: 0.75rem;
}

.footer-social a {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(226, 232, 240, 0.35);
    color: rgba(226, 232, 240, 0.8);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: #0f172a;
    background: #f8fafc;
    border-color: #f8fafc;
}

.result-header {
    width: 100%;
    max-width: 210mm;
    margin-left: auto;
    margin-right: auto;
}

.result-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.result-header-top a {
    flex-shrink: 0;
}

.result-header-actions {
    width: 100%;
}

.result-header-actions__item {
    display: flex;
    width: 100%;
}

.result-header-actions__item > * {
    flex: 1 1 auto;
}

.result-header-actions__item--download > * {
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    .result-header-actions__item {
        align-items: center;
    }

    .result-header-actions__item--download {
        width: auto;
    }

    .result-header-actions__item--download > * {
        width: auto;
    }
}

.utility-card {
    margin-top: 2.5rem;
    background: #111c2f;
    color: #e2e8f0;
    border-radius: 0.65rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 210mm;
    margin-left: auto;
    margin-right: auto;
}

.utility-card h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.utility-card-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.utility-card-form .utility-control-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.utility-card-form .form-select {
    min-width: 0;
}

@media (min-width: 768px) {
    .utility-card-form .utility-control-row {
        flex-direction: row;
        align-items: stretch;
    }

    .utility-card-form .form-select {
        flex: 1 1 260px;
    }

    .utility-card-form .utility-control-row .btn {
        align-self: stretch;
    }
}

.utility-card .btn {
    border-radius: 0.375rem;
    border-color: #212529;
    color: #212529;
    background-color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.utility-card .btn:hover,
.utility-card .btn:focus {
    color: #0b1220;
    background-color: #ffffff;
    border-color: #0b1220;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.3);
}

.utility-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.utility-inline-actions form {
    flex: 0 0 auto;
}

#download-pdf,
#download-pdf:hover,
#download-pdf:focus {
    text-decoration: none;
}
