/* ==========================================================================
   KSM Event Manager — Professional Form Templates
   Premium-grade visual templates for high-end designer websites
   ========================================================================== */


/* ─── Global Base ────────────────────────────────────────────────────────── */

.ksm-em-form {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto,
                 Helvetica, Arial, sans-serif;
}

.ksm-em-form *,
.ksm-em-form *::before,
.ksm-em-form *::after { box-sizing: inherit; }

/* Global shared utilities */
.ksm-em-form .required              { color: #d53f3f; margin-left: 3px; }
.ksm-em-form .ksm-em-field-description {
    margin-top: 6px; font-size: 12.5px; color: #6b7280; line-height: 1.5;
}
.ksm-em-form .ksm-em-radio-label,
.ksm-em-form .ksm-em-checkbox-label {
    display: inline-flex; align-items: center; gap: 8px;
    margin-right: 16px; cursor: pointer; user-select: none;
}

/* Section divider (used by all templates) */
.ksm-em-section-title {
    font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: #6b7280; margin: 0 0 6px;
}
hr.ksm-em-section-divider {
    border: none; border-top: 1px solid #e5e7eb; margin: 4px 0 18px;
}


/* ==========================================================================
   TEMPLATE: MODERN
   Refined everyday form — rounded inputs, indigo focus ring
   ========================================================================== */

.ksm-em-template-modern { max-width: 680px; margin: 0 auto; }

.ksm-em-template-modern .ksm-em-form-field { margin-bottom: 20px; }

.ksm-em-template-modern label {
    display: block; margin-bottom: 6px; font-size: 13px;
    font-weight: 600; letter-spacing: 0.02em; color: #1a202c;
}

.ksm-em-template-modern .ksm-em-input,
.ksm-em-template-modern .ksm-em-textarea,
.ksm-em-template-modern .ksm-em-select {
    width: 100%; padding: 12px 16px;
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-size: 15px; color: #1a202c; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ksm-em-template-modern .ksm-em-input::placeholder,
.ksm-em-template-modern .ksm-em-textarea::placeholder { color: #b0bac8; }

.ksm-em-template-modern .ksm-em-input:focus,
.ksm-em-template-modern .ksm-em-textarea:focus,
.ksm-em-template-modern .ksm-em-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.10);
}

.ksm-em-template-modern .ksm-em-form-submit { margin-top: 28px; }

.ksm-em-template-modern .ksm-em-submit-button {
    display: inline-block; padding: 13px 36px;
    background: #6366f1; color: #fff; font-size: 14px; font-weight: 700;
    letter-spacing: 0.04em; border: none; border-radius: 10px; cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.ksm-em-template-modern .ksm-em-submit-button:hover {
    background: #4f46e5; transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28);
}


/* ==========================================================================
   TEMPLATE: CARD
   Elevated white card — layered shadow, sky-blue accent
   ========================================================================== */

.ksm-em-template-card {
    max-width: 660px; margin: 0 auto; padding: 36px 40px;
    background: #fff; border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 16px 56px rgba(15,23,42,0.10);
}

.ksm-em-template-card .ksm-em-form-field { margin-bottom: 22px; }

.ksm-em-template-card label {
    display: block; margin-bottom: 7px; font-size: 11.5px;
    font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
    color: #475569;
}

.ksm-em-template-card .ksm-em-input,
.ksm-em-template-card .ksm-em-textarea,
.ksm-em-template-card .ksm-em-select {
    width: 100%; padding: 13px 16px;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    font-size: 15px; color: #0f172a; outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ksm-em-template-card .ksm-em-input::placeholder,
.ksm-em-template-card .ksm-em-textarea::placeholder { color: #b0bec5; }

.ksm-em-template-card .ksm-em-input:focus,
.ksm-em-template-card .ksm-em-textarea:focus,
.ksm-em-template-card .ksm-em-select:focus {
    background: #fff; border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.ksm-em-template-card .ksm-em-form-submit { margin-top: 30px; }

.ksm-em-template-card .ksm-em-submit-button {
    display: block; width: 100%; padding: 15px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.05em;
    border: none; border-radius: 10px; cursor: pointer;
    transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
}

.ksm-em-template-card .ksm-em-submit-button:hover {
    opacity: 0.92; transform: translateY(-1px);
    box-shadow: 0 10px 32px rgba(14, 165, 233, 0.35);
}

@media (max-width: 600px) {
    .ksm-em-template-card { padding: 24px 20px; }
}


/* ==========================================================================
   TEMPLATE: MINIMAL
   Quiet underline inputs — pure typographic restraint
   ========================================================================== */

.ksm-em-template-minimal .ksm-em-form-field { margin-bottom: 32px; }

.ksm-em-template-minimal label {
    display: block; margin-bottom: 8px; font-size: 10.5px;
    font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: #9ca3af;
}

.ksm-em-template-minimal .ksm-em-input,
.ksm-em-template-minimal .ksm-em-textarea,
.ksm-em-template-minimal .ksm-em-select {
    width: 100%; padding: 10px 0; background: transparent;
    border: none; border-bottom: 1.5px solid #e5e7eb;
    border-radius: 0; font-size: 16px; color: #111827;
    outline: none; transition: border-color 0.25s;
}

.ksm-em-template-minimal .ksm-em-input::placeholder,
.ksm-em-template-minimal .ksm-em-textarea::placeholder { color: #d1d5db; }

.ksm-em-template-minimal .ksm-em-input:focus,
.ksm-em-template-minimal .ksm-em-textarea:focus,
.ksm-em-template-minimal .ksm-em-select:focus { border-bottom-color: #111827; }

.ksm-em-template-minimal .ksm-em-form-submit { margin-top: 40px; }

.ksm-em-template-minimal .ksm-em-submit-button {
    display: inline-block; padding: 12px 36px;
    background: transparent; color: #111827; font-size: 11px;
    font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    border: 2px solid #111827; border-radius: 0; cursor: pointer;
    transition: background 0.22s, color 0.22s;
}

.ksm-em-template-minimal .ksm-em-submit-button:hover {
    background: #111827; color: #fff;
}


/* ==========================================================================
   TEMPLATE: GLASS
   Frosted glass — deep blur + layered transparency
   ========================================================================== */

.ksm-em-template-glass {
    max-width: 700px; margin: 0 auto; padding: 36px 40px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13);
}

.ksm-em-template-glass .ksm-em-form-field { margin-bottom: 20px; }

.ksm-em-template-glass label {
    display: block; margin-bottom: 7px; font-size: 12px;
    font-weight: 700; letter-spacing: 0.06em; color: #0f172a;
}

.ksm-em-template-glass .ksm-em-input,
.ksm-em-template-glass .ksm-em-textarea,
.ksm-em-template-glass .ksm-em-select {
    width: 100%; padding: 13px 16px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 10px;
    font-size: 15px; color: #0f172a; outline: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ksm-em-template-glass .ksm-em-input:focus,
.ksm-em-template-glass .ksm-em-textarea:focus,
.ksm-em-template-glass .ksm-em-select:focus {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.ksm-em-template-glass .ksm-em-form-submit { margin-top: 28px; }

.ksm-em-template-glass .ksm-em-submit-button {
    display: inline-block; padding: 13px 36px;
    background: rgba(15, 23, 42, 0.82); color: #fff;
    font-size: 14px; font-weight: 700; border: none; border-radius: 10px;
    cursor: pointer; transition: background 0.2s, box-shadow 0.2s;
}

.ksm-em-template-glass .ksm-em-submit-button:hover {
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

@media (max-width: 600px) {
    .ksm-em-template-glass { padding: 24px 20px; }
}


/* ==========================================================================
   TEMPLATE: LUXE  ✦  Dark Elegance
   Deep charcoal · champagne gold · luxury fashion / hotel / flagship brand
   ========================================================================== */

.ksm-em-template-luxe {
    max-width: 620px; margin: 0 auto;
    padding: 52px 52px 44px;
    background: #0C0F1A;
    border-radius: 4px;
    position: relative; overflow: hidden;
}

/* Single-pixel gold shimmer across the top */
.ksm-em-template-luxe::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(
        90deg, transparent 0%, #9A731E 20%, #C9A96E 40%,
        #EDD59A 50%, #C9A96E 60%, #9A731E 80%, transparent 100%
    );
}

.ksm-em-template-luxe .ksm-em-form-field { margin-bottom: 32px; }

.ksm-em-template-luxe label {
    display: block; margin-bottom: 10px; font-size: 9px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase; color: #C9A96E;
}

.ksm-em-template-luxe .ksm-em-input,
.ksm-em-template-luxe .ksm-em-textarea,
.ksm-em-template-luxe .ksm-em-select {
    width: 100%; padding: 13px 0; background: transparent;
    border: none; border-bottom: 1px solid rgba(201, 169, 110, 0.22);
    border-radius: 0; font-size: 15px; color: #EFE5CF;
    letter-spacing: 0.025em; outline: none;
    transition: border-color 0.35s;
}

.ksm-em-template-luxe .ksm-em-input::placeholder,
.ksm-em-template-luxe .ksm-em-textarea::placeholder {
    color: rgba(239, 229, 207, 0.18);
}

.ksm-em-template-luxe .ksm-em-input:focus,
.ksm-em-template-luxe .ksm-em-textarea:focus,
.ksm-em-template-luxe .ksm-em-select:focus { border-bottom-color: #C9A96E; }

.ksm-em-template-luxe .ksm-em-select {
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 5 5-5z' fill='%23C9A96E'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 2px center;
    padding-right: 22px; color: rgba(239, 229, 207, 0.55);
}

.ksm-em-template-luxe .ksm-em-select option { background: #0C0F1A; color: #EFE5CF; }

.ksm-em-template-luxe .ksm-em-radio-label,
.ksm-em-template-luxe .ksm-em-checkbox-label { color: #EFE5CF; font-size: 14px; }

.ksm-em-template-luxe .required { color: #e8a87c; }

.ksm-em-template-luxe .ksm-em-form-submit { margin-top: 44px; }

.ksm-em-template-luxe .ksm-em-submit-button {
    display: block; width: 100%; padding: 16px;
    background: transparent; color: #C9A96E;
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.28em;
    text-transform: uppercase; border: 1px solid #C9A96E; border-radius: 2px;
    cursor: pointer; position: relative; isolation: isolate; overflow: hidden;
    transition: color 0.38s;
}

.ksm-em-template-luxe .ksm-em-submit-button::before {
    content: ''; position: absolute; inset: 0;
    background: #C9A96E;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.ksm-em-template-luxe .ksm-em-submit-button:hover { color: #0C0F1A; }
.ksm-em-template-luxe .ksm-em-submit-button:hover::before { transform: scaleX(1); }

.ksm-em-template-luxe .ksm-em-section-title {
    color: rgba(201,169,110,0.6); font-size: 9px; letter-spacing: 0.2em;
    text-transform: uppercase;
}
.ksm-em-template-luxe hr.ksm-em-section-divider { border-top-color: rgba(201,169,110,0.14); }
.ksm-em-template-luxe .ksm-em-field-description { color: rgba(239,229,207,0.35); }

@media (max-width: 600px) {
    .ksm-em-template-luxe { padding: 36px 24px 32px; }
}


/* ==========================================================================
   TEMPLATE: STUDIO  ✦  Editorial Precision
   Split label-left / input-right grid · design studio / agency / architecture
   ========================================================================== */

.ksm-em-template-studio { max-width: 760px; margin: 0 auto; }

.ksm-em-template-studio .ksm-em-form-field {
    display: grid; grid-template-columns: 200px 1fr;
    align-items: start; gap: 0 36px;
    padding: 20px 0; border-bottom: 1px solid #f0f0f0;
}

.ksm-em-template-studio .ksm-em-form-field:first-of-type { border-top: 1px solid #f0f0f0; }

.ksm-em-template-studio label {
    padding-top: 12px; font-size: 11px; font-weight: 600;
    letter-spacing: 0.09em; text-transform: uppercase; color: #b0b4bc;
    line-height: 1.4; transition: color 0.25s;
}

.ksm-em-template-studio .ksm-em-form-field:has(:focus) label { color: #111; }

.ksm-em-template-studio .ksm-em-input,
.ksm-em-template-studio .ksm-em-textarea,
.ksm-em-template-studio .ksm-em-select {
    width: 100%; padding: 10px 0; background: transparent;
    border: none; border-bottom: 2px solid transparent;
    font-size: 16px; color: #111; outline: none; border-radius: 0;
    transition: border-color 0.25s;
}

.ksm-em-template-studio .ksm-em-input::placeholder,
.ksm-em-template-studio .ksm-em-textarea::placeholder {
    color: #d8dae0; font-weight: 300;
}

.ksm-em-template-studio .ksm-em-input:focus,
.ksm-em-template-studio .ksm-em-textarea:focus,
.ksm-em-template-studio .ksm-em-select:focus { border-bottom-color: #111; }

.ksm-em-template-studio .ksm-em-select {
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 5 5-5z' fill='%23111'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0 center;
    padding-right: 20px;
}

/* Section headings: span both columns */
.ksm-em-template-studio .ksm-em-field-section,
.ksm-em-template-studio .ksm-em-field-html { grid-template-columns: 1fr; gap: 0; }

.ksm-em-template-studio .ksm-em-field-section .ksm-em-section-title {
    font-size: 10px; letter-spacing: 0.18em; color: #babcc2; padding: 4px 0;
}

.ksm-em-template-studio .ksm-em-form-submit {
    display: grid; grid-template-columns: 200px 1fr;
    gap: 0 36px; margin-top: 48px;
}

.ksm-em-template-studio .ksm-em-submit-button {
    grid-column: 2; display: inline-block; padding: 14px 36px;
    background: #111; color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    border: none; border-radius: 3px; cursor: pointer;
    transition: background 0.22s, letter-spacing 0.22s;
}

.ksm-em-template-studio .ksm-em-submit-button:hover {
    background: #2d2d2d; letter-spacing: 0.18em;
}

.ksm-em-template-studio .ksm-em-radio-label,
.ksm-em-template-studio .ksm-em-checkbox-label { align-items: center; font-size: 15px; color: #111; }

@media (max-width: 680px) {
    .ksm-em-template-studio .ksm-em-form-field,
    .ksm-em-template-studio .ksm-em-form-submit { grid-template-columns: 1fr; gap: 4px 0; }
    .ksm-em-template-studio label { padding-top: 0; }
    .ksm-em-template-studio .ksm-em-submit-button { grid-column: 1; width: 100%; }
}


/* ==========================================================================
   TEMPLATE: NOIR  ✦  Dark Luxury Tech
   Deep pitch-black · violet-indigo resonance · premium SaaS / tech product
   ========================================================================== */

.ksm-em-template-noir {
    max-width: 660px; margin: 0 auto; padding: 48px;
    background: #0D0D14;
    border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.05);
}

.ksm-em-template-noir .ksm-em-form-field { margin-bottom: 24px; }

.ksm-em-template-noir label {
    display: block; margin-bottom: 8px; font-size: 11px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.36);
}

.ksm-em-template-noir .ksm-em-input,
.ksm-em-template-noir .ksm-em-textarea,
.ksm-em-template-noir .ksm-em-select {
    width: 100%; padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px;
    font-size: 15px; color: rgba(255, 255, 255, 0.86);
    outline: none; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.ksm-em-template-noir .ksm-em-input::placeholder,
.ksm-em-template-noir .ksm-em-textarea::placeholder { color: rgba(255, 255, 255, 0.13); }

.ksm-em-template-noir .ksm-em-input:focus,
.ksm-em-template-noir .ksm-em-textarea:focus,
.ksm-em-template-noir .ksm-em-select:focus {
    background: rgba(109, 66, 255, 0.07);
    border-color: rgba(109, 66, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(109, 66, 255, 0.12), 0 0 20px rgba(109, 66, 255, 0.08);
}

.ksm-em-template-noir .ksm-em-select {
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 5 5-5z' fill='rgba(255,255,255,0.3)'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
    padding-right: 36px;
}

.ksm-em-template-noir .ksm-em-select option { background: #0D0D14; color: #fff; }

.ksm-em-template-noir .ksm-em-radio-label,
.ksm-em-template-noir .ksm-em-checkbox-label { color: rgba(255, 255, 255, 0.68); }

.ksm-em-template-noir .required { color: #ff6b8a; }
.ksm-em-template-noir .ksm-em-field-description { color: rgba(255, 255, 255, 0.28); }

.ksm-em-template-noir .ksm-em-form-submit { margin-top: 36px; }

.ksm-em-template-noir .ksm-em-submit-button {
    display: block; width: 100%; padding: 16px;
    background: linear-gradient(135deg, #6D42FF 0%, #9B59F0 100%);
    color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; border: none; border-radius: 10px;
    cursor: pointer; position: relative; isolation: isolate; overflow: hidden;
    transition: box-shadow 0.25s;
}

.ksm-em-template-noir .ksm-em-submit-button::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.14), transparent);
    opacity: 0; transition: opacity 0.22s; z-index: -1;
}

.ksm-em-template-noir .ksm-em-submit-button:hover::before { opacity: 1; }
.ksm-em-template-noir .ksm-em-submit-button:hover {
    box-shadow: 0 8px 48px rgba(109, 66, 255, 0.42);
}

.ksm-em-template-noir .ksm-em-section-title {
    color: rgba(255, 255, 255, 0.24); font-size: 9.5px; letter-spacing: 0.22em;
    text-transform: uppercase;
}
.ksm-em-template-noir hr.ksm-em-section-divider { border-top-color: rgba(255,255,255,0.07); }

@media (max-width: 600px) {
    .ksm-em-template-noir { padding: 32px 22px; }
}


/* ==========================================================================
   TEMPLATE: CRYSTAL  ✦  High-Precision White
   Crisp type-led fields · strong label contrast · coral accent
   Boutique / fintech / e-commerce flagship
   ========================================================================== */

.ksm-em-template-crystal { max-width: 640px; margin: 0 auto; background: #fff; }

.ksm-em-template-crystal .ksm-em-form-field {
    padding: 22px 0; border-bottom: 1px solid #F3F4F6;
}

.ksm-em-template-crystal label {
    display: block; margin-bottom: 10px; font-size: 10.5px; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase; color: #374151;
    transition: color 0.2s;
}

.ksm-em-template-crystal .ksm-em-form-field:has(:focus) label { color: #E8305A; }

.ksm-em-template-crystal .ksm-em-input,
.ksm-em-template-crystal .ksm-em-textarea,
.ksm-em-template-crystal .ksm-em-select {
    width: 100%; padding: 4px 0; background: transparent;
    border: none; border-radius: 0; font-size: 21px; font-weight: 300;
    color: #111; letter-spacing: -0.02em; outline: none;
}

.ksm-em-template-crystal .ksm-em-input::placeholder,
.ksm-em-template-crystal .ksm-em-textarea::placeholder {
    color: #d8dce3; font-weight: 300;
}

.ksm-em-template-crystal .ksm-em-form-field:has(.ksm-em-input:focus),
.ksm-em-template-crystal .ksm-em-form-field:has(.ksm-em-textarea:focus),
.ksm-em-template-crystal .ksm-em-form-field:has(.ksm-em-select:focus) {
    border-bottom-color: #E8305A;
}

.ksm-em-template-crystal .ksm-em-select {
    -webkit-appearance: none; appearance: none; font-size: 21px; font-weight: 300;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 7 6-7z' fill='%23374151'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 2px center;
    padding-right: 24px;
}

.ksm-em-template-crystal .ksm-em-radio-label,
.ksm-em-template-crystal .ksm-em-checkbox-label { font-size: 17px; font-weight: 300; color: #111; }

.ksm-em-template-crystal .required { color: #E8305A; }
.ksm-em-template-crystal .ksm-em-section-title { font-size: 10px; font-weight: 800; letter-spacing: 0.2em; color: #9CA3AF; }
.ksm-em-template-crystal hr.ksm-em-section-divider { border-top: 2px solid #F3F4F6; }

.ksm-em-template-crystal .ksm-em-form-submit { padding-top: 36px; }

.ksm-em-template-crystal .ksm-em-submit-button {
    display: block; width: 100%; padding: 18px;
    background: #E8305A; color: #fff; font-size: 10.5px; font-weight: 800;
    letter-spacing: 0.22em; text-transform: uppercase;
    border: none; border-radius: 4px; cursor: pointer;
    transition: background 0.22s, letter-spacing 0.22s, box-shadow 0.22s;
}

.ksm-em-template-crystal .ksm-em-submit-button:hover {
    background: #c9274d; letter-spacing: 0.28em;
    box-shadow: 0 14px 44px rgba(232, 48, 90, 0.28);
}


/* ==========================================================================
   TEMPLATE: ARCHITECT  ✦  Structured Editorial
   Warm off-white · bold left-border accent on focus · architecture / print / law
   ========================================================================== */

.ksm-em-template-architect {
    max-width: 760px; margin: 0 auto;
    background: #F9F7F2;
    padding: 48px 52px;
    border-left: 4px solid #111;
}

.ksm-em-template-architect .ksm-em-form-field { margin-bottom: 28px; }

.ksm-em-template-architect label {
    display: block; margin-bottom: 6px; font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; color: #6B6B60;
}

.ksm-em-template-architect .ksm-em-input,
.ksm-em-template-architect .ksm-em-textarea,
.ksm-em-template-architect .ksm-em-select {
    width: 100%; padding: 13px 16px;
    background: #fff; border: 1px solid #E2DED4;
    border-left: 3px solid transparent; border-radius: 2px;
    font-size: 15px; color: #1A1A14; outline: none;
    transition: border-left-color 0.22s, box-shadow 0.22s;
}

.ksm-em-template-architect .ksm-em-input::placeholder,
.ksm-em-template-architect .ksm-em-textarea::placeholder { color: #B8B5AB; }

.ksm-em-template-architect .ksm-em-input:focus,
.ksm-em-template-architect .ksm-em-textarea:focus,
.ksm-em-template-architect .ksm-em-select:focus {
    border-left-color: #111;
    box-shadow: 2px 2px 14px rgba(0, 0, 0, 0.07);
}

.ksm-em-template-architect .ksm-em-select {
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 5 5-5z' fill='%236B6B60'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 32px;
}

.ksm-em-template-architect .ksm-em-radio-label,
.ksm-em-template-architect .ksm-em-checkbox-label { font-size: 14px; color: #1A1A14; }

.ksm-em-template-architect .ksm-em-section-title {
    font-size: 9px; font-weight: 700; letter-spacing: 0.22em; color: #6B6B60;
    text-transform: uppercase;
}
.ksm-em-template-architect hr.ksm-em-section-divider { border-top: 1px solid #DED9CE; }

.ksm-em-template-architect .ksm-em-form-submit { margin-top: 36px; }

.ksm-em-template-architect .ksm-em-submit-button {
    display: inline-block; padding: 14px 40px;
    background: #111; color: #F9F7F2; font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    border: none; border-radius: 2px; cursor: pointer;
    transition: background 0.22s, letter-spacing 0.22s;
}

.ksm-em-template-architect .ksm-em-submit-button:hover {
    background: #2a2a20; letter-spacing: 0.28em;
}

@media (max-width: 600px) {
    .ksm-em-template-architect { padding: 32px 20px; border-left-width: 3px; }
}


/* ==========================================================================
   GLOBAL: Star Rating (all templates)
   ========================================================================== */

.ksm-em-rating {
    display: inline-flex; align-items: center; gap: 4px;
    flex-direction: row-reverse; user-select: none;
}

.ksm-em-rating-input {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); border: 0;
}

.ksm-em-rating-star {
    cursor: pointer; font-size: 26px; color: #d1d5db; line-height: 1;
    transition: color 0.12s ease, transform 0.08s ease;
    padding: 0 3px; display: inline-block;
}

.ksm-em-rating-star::before { content: '\2605'; }

.ksm-em-rating-star:hover,
.ksm-em-rating-star:hover ~ .ksm-em-rating-star { color: #f6d86b; transform: translateY(-2px); }

.ksm-em-rating-input:focus + .ksm-em-rating-star {
    outline: 3px solid rgba(59, 130, 246, 0.14); border-radius: 4px;
}

.ksm-em-rating-input:checked + .ksm-em-rating-star,
.ksm-em-rating-input:checked + .ksm-em-rating-star ~ .ksm-em-rating-star { color: #f5c518; }

.ksm-em-rating-star:active { transform: translateY(0); }
.ksm-em-rating-star[tabindex] { outline: none; }

