/*
 * Freeform for ExpressionEngine
 *
 * @package       Solspace:Freeform
 * @author        Solspace, Inc.
 * @copyright     Copyright (c) 2008-2025, Solspace, Inc.
 * @link          https://docs.solspace.com/expressionengine/freeform/v3/
 * @license       https://docs.solspace.com/license-agreement/
 */

<style>
/* =======================================================
   ENHANCED FORM STYLING FOR .form-wrap-ee CONTAINER
   Based on needed.css - Makes form look like reference design
   All existing classes preserved, only visual enhancements
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Source+Sans+3:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

.form-wrap-ee {
    --naot-green: #0a6b3b;
    --naot-green-dark: #074a29;
    --naot-green-light: #1a8a4f;
    --naot-blue: #1d3557;
    --naot-blue-light: #2a4d7a;
    --naot-gold: #d4a017;
    --naot-red: #c1272d;
    --paper: #ffffff;
    --paper-soft: #f5f7f4;
    --paper-tint: #eaf2ec;
    --ink: #1a2332;
    --ink-soft: #3a4556;
    --muted: #6b7280;
    --naot-warning: #cb2026;
    --border: #d9dfe0;
    --border-strong: #9aa5a8;
    --shadow: 0 1px 0 rgba(10,107,59,0.04), 0 6px 20px -10px rgba(29,53,87,0.18);
}


/* ========== FORM CONTAINER ENHANCEMENTS ========== */
.form-wrap-ee {
    max-width: 100%;
}

/* Section styling - matching reference design */
.form-wrap-ee .section {
    margin-bottom: 28px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-top: 3px solid var(--naot-green);
    border-radius: 3px;
    padding: 32px 36px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease;
}

.form-wrap-ee .section:hover {
    box-shadow: var(--shadow);
}

.form-wrap-ee .form-group {
    margin-bottom: 15px;
}

/* Section header styling */
.form-wrap-ee .section-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 6px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--paper-tint);
}

.form-wrap-ee .section-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--naot-gold);
    letter-spacing: 0.12em;
    font-weight: 600;
    background: var(--paper-soft);
    padding: 3px 8px;
    border-radius: 2px;
}

.form-wrap-ee .section-title {
    font-family: 'Merriweather', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--naot-blue);
    margin: 0;
}

.form-wrap-ee .section-desc {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
    margin-bottom: 18px;
    font-style: italic;
}

/* ========== FORM FIELD ENHANCEMENTS ========== */
.form-wrap-ee .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-wrap-ee .field label,
.form-wrap-ee .form-group label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--naot-blue);
    text-transform: uppercase;
    margin-bottom: 0;
}

.form-wrap-ee .field label .req,
.form-wrap-ee .required:after {
    color: var(--naot-red);
    margin-left: 2px;
}

/* Required field indicator */
.form-wrap-ee label.required:after {
    content: '*';
    color: var(--naot-red);
    margin-left: 3px;
}

/* ========== INPUT STYLING ========== */
.form-wrap-ee input[type="text"],
.form-wrap-ee input[type="email"],
.form-wrap-ee input[type="tel"],
.form-wrap-ee input[type="date"],
.form-wrap-ee input[type="time"],
.form-wrap-ee input[type="number"],
.form-wrap-ee input[type="datetime"],
.form-wrap-ee select,
.form-wrap-ee textarea {
    width: 100%;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    transition: all 0.15s;
}

.form-wrap-ee input:focus,
.form-wrap-ee select:focus,
.form-wrap-ee textarea:focus {
    outline: none;
    border-color: var(--naot-green);
    box-shadow: 0 0 0 3px rgba(10,107,59,0.12);
}

.form-wrap-ee textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Select dropdown custom arrow */
.form-wrap-ee select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3e%3cpath fill='%230a6b3b' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ========== RADIO & CHECKBOX GROUPS - INLINE LAYOUT ========== */
.form-wrap-ee .radio-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
    align-items: center;
}

.form-wrap-ee .radio-group.inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

/* Target individual radio/checkbox option containers */
.form-wrap-ee .radio,
.form-wrap-ee .checkbox {
    display: inline-block !important;
    margin-right: 24px !important;
    margin-bottom: 0 !important;
    width: auto !important;
}

.form-wrap-ee .radio label,
.form-wrap-ee .checkbox label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0;
}

.form-wrap-ee input[type="radio"],
.form-wrap-ee input[type="checkbox"] {
    accent-color: var(--naot-green);
    width: 16px;
    height: 16px;
    margin-right: 4px;
    cursor: pointer;
}

/* Radio-opt and check-opt styled boxes (if used) */
.form-wrap-ee .radio-opt,
.form-wrap-ee .check-opt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 3px;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s;
    font-size: 13.5px;
}

.form-wrap-ee .radio-opt:hover,
.form-wrap-ee .check-opt:hover {
    border-color: var(--naot-green);
    background: var(--paper-tint);
}

.form-wrap-ee .radio-opt input,
.form-wrap-ee .check-opt input {
    accent-color: var(--naot-green);
    cursor: pointer;
    margin: 0;
}

.form-wrap-ee .radio-opt:has(input:checked),
.form-wrap-ee .check-opt:has(input:checked) {
    border-color: var(--naot-green);
    background: var(--paper-tint);
    box-shadow: inset 0 0 0 1px var(--naot-green);
}

/* ========== FILE INPUT STYLING ========== */
.form-wrap-ee .file-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px dashed var(--border-strong);
    border-radius: 3px;
    background: var(--paper-soft);
    cursor: pointer;
    transition: all 0.15s;
}

.form-wrap-ee .file-input:hover {
    background: var(--paper-tint);
    border-color: var(--naot-green);
}

.form-wrap-ee .file-input input {
    display: none;
}

.form-wrap-ee .file-icon {
    width: 36px;
    height: 36px;
    background: var(--naot-green);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 600;
}

.form-wrap-ee .file-text {
    flex: 1;
    font-size: 13px;
    color: var(--muted);
}

.form-wrap-ee .file-text strong {
    color: var(--ink);
    display: block;
    font-weight: 600;
}

/* ========== CONDITIONAL FIELDS ========== */
.form-wrap-ee .conditional-field {
    display: none;
}

.form-wrap-ee .conditional-field.visible {
    display: block;
}

/* ========== DECLARATION BOX ========== */
.form-wrap-ee .declaration {
    background: var(--paper-tint);
    padding: 18px 22px;
    border-left: 3px solid var(--naot-green);
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-soft);
    border-radius: 0 3px 3px 0;
}

/* ========== SUBMIT BAR & BUTTONS ========== */
.form-wrap-ee .submit-bar {
    margin-top: 32px;
    padding: 24px 0 0;
    border-top: 2px solid var(--naot-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.form-wrap-ee .submit-note {
    font-size: 12px;
    color: var(--muted)
    font-style: italic;
    max-width: 420px;
}

.form-wrap-ee .btn,
.form-wrap-ee .btn-success {
    padding: 13px 32px;
    background: var(--naot-green);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.form-wrap-ee .btn:hover,
.form-wrap-ee .btn-success:hover {
    background: var(--naot-green-dark);
    transform: translateY(-1px);
}

.form-wrap-ee .btn-secondary,
.form-wrap-ee .btn.secondary {
    background: #fff;
    color: var(--naot-green);
    border: 1.5px solid var(--naot-green);
}

.form-wrap-ee .btn-secondary:hover,
.form-wrap-ee .btn.secondary:hover {
    background: var(--naot-green);
    color: #fff;
}

/* ========== HELP TEXT & ALERTS ========== */
.form-wrap-ee .help-block {
    font-size: 11px;
    color: #cb2026 !important;
    margin-top: 5px !important;
    font-style: italic;
}

.form-wrap-ee .alert {
    border-radius: 3px;
    padding: 14px 20px;
    margin-bottom: 24px;
}

.form-wrap-ee .alert-success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    border-left: 4px solid var(--naot-green);
}

.form-wrap-ee .alert-danger {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
    border-left: 4px solid var(--naot-red);
}

/* ========== NAV TABS FOR MULTI-PAGE FORMS ========== */
.form-wrap-ee .nav-tabs {
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
    display: flex;
    gap: 2px;
    background: var(--paper-soft);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 3px;
}

.form-wrap-ee .nav-tabs > li {
    margin-bottom: 0;
    list-style: none;
}

.form-wrap-ee .nav-tabs > li > a {
    background: transparent;
    border: none;
    padding: 8px 18px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-block;
}

.form-wrap-ee .nav-tabs > li.active > a {
    background: var(--naot-green);
    color: #fff;
}

.form-wrap-ee .nav-tabs > li > a:hover:not(.active) {
    color: var(--naot-green-dark);
}

/* ========== GRID LAYOUT ENHANCEMENTS ========== */
.form-wrap-ee .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
    margin-top: 16px;
}

.form-wrap-ee .grid.full {
    grid-template-columns: 1fr;
}

.form-wrap-ee .col-full {
    grid-column: 1 / -1;
}

/* ========== FORM INTRO BOX ========== */
.form-wrap-ee .form-intro {
    background: #fff;
    border-left: 4px solid var(--naot-gold);
    padding: 18px 22px;
    margin-bottom: 32px;
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.6;
    box-shadow: var(--shadow);
    border-radius: 0 3px 3px 0;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .form-wrap-ee .section {
        padding: 22px 20px;
    }
    
    .form-wrap-ee .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-wrap-ee .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .form-wrap-ee .radio,
    .form-wrap-ee .checkbox {
        display: block !important;
        margin-right: 0 !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 576px) {
    .form-wrap-ee .section {
        padding: 18px 16px;
    }
    
    .form-wrap-ee .section-title {
        font-size: 18px;
    }
    
    .form-wrap-ee .submit-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-wrap-ee .btn,
    .form-wrap-ee .btn-success {
        width: 100%;
        justify-content: center;
    }
    
    .form-wrap-ee .nav-tabs > li > a {
        padding: 6px 12px;
        font-size: 10px;
    }
}
</style>


ul.nav-tabs {
  margin-bottom: 25px;
}

label.required:after {
  content: "*";
  color: #d00;
  margin-left: 5px;
}

ul.errors.help-block {
  padding: 0 20px;
  margin: 0;
}

ul.errors.help-block > li {
  font-size: 12px;
}

.submit-align-left {
  text-align: left;
}

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

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

.submit-align-left button:not(:first-of-type),
.submit-align-right button:not(:first-of-type),
.submit-align-center button:not(:first-of-type) {
  margin-left: 5px;
}

.submit-align-spread button:first-child {
  float: left;
}

.submit-align-spread button:last-child {
  float: right;
}
