/* ═══════════════════════════════════════════════════════════
   KHIIMORI WORLD — plugins.css
   Third-party plugin overrides: LEForm (Green Forms), Smash Balloon.
   Loaded on every page (plugins render globally).
═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   LEFORM / GREEN FORMS
   Plugin injects inline <style> with high-specificity selectors.
   We match with .leform-form.leform-form-1 to override reliably.
═══════════════════════════════════════════════════════════ */

/* ── Shared wrapper — used in cards (.sc-form-wrap) and newsletter (.nl-form-wrap) */
.sc-form-wrap,
.nl-form-wrap .leform-inline.leform-container {
    margin-top: 20px;
}

/* Outer container — kill plugin max-width and padding */
.sc-form-wrap .leform-inline.leform-container,
.nl-form-wrap .leform-inline.leform-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* The form itself — full width, no padding */
.sc-form-wrap .leform-form.leform-form-1,
.nl-form-wrap .leform-form.leform-form-1 {
    width: 100% !important;
    padding: 0 !important;
}

/* form-inner: horizontal flex row */
.sc-form-wrap .leform-form.leform-form-1 .leform-form-inner,
.nl-form-wrap .leform-form.leform-form-1 .leform-form-inner {
    display: flex !important;
    align-items: stretch !important;
    border: 1px solid rgba(44,26,14,0.15) !important;
    border-radius: var(--radius) !important;
    overflow: visible !important;
}

/* Error bubble */
.sc-form-wrap .leform-form.leform-form-1 .leform-element-error,
.nl-form-wrap .leform-form.leform-form-1 .leform-element-error {
    position: absolute !important;
    z-index: 10 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 9px !important;
    font-weight: 500 !important;
    color: #fff !important;
    background-color: #d9534f !important;
    padding: 4px 8px !important;
    border-radius: var(--radius) !important;
    white-space: nowrap !important;
    margin-top: 2px !important;
}

/* Kill plugin padding on elements */
.sc-form-wrap .leform-form.leform-form-1 .leform-element,
.nl-form-wrap .leform-form.leform-form-1 .leform-element {
    padding: 0 !important;
    margin: 0 !important;
}

/* Email element stretches */
.sc-form-wrap .leform-form.leform-form-1 .leform-element[data-type='email'],
.nl-form-wrap .leform-form.leform-form-1 .leform-element[data-type='email'] {
    flex: 1 1 auto !important;
}

/* Button element fixed width */
.sc-form-wrap .leform-form.leform-form-1 .leform-element[data-type='button'],
.nl-form-wrap .leform-form.leform-form-1 .leform-element[data-type='button'] {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: stretch !important;
}

/* Hide empty labels */
.sc-form-wrap .leform-column-label,
.sc-form-wrap label.leform-description,
.nl-form-wrap .leform-column-label,
.nl-form-wrap label.leform-description {
    display: none !important;
}

/* Input column fills height */
.sc-form-wrap .leform-column-input,
.sc-form-wrap .leform-input,
.nl-form-wrap .leform-column-input,
.nl-form-wrap .leform-input {
    display: flex !important;
    height: 100% !important;
    background: #faf9f5 !important;
}

/* Email input */
.sc-form-wrap input[type='email'],
.nl-form-wrap input[type='email'] {
    flex: 1 !important;
    width: 100% !important;
    padding: 10px 14px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    color: var(--earth) !important;
    background: #faf9f5 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}
.sc-form-wrap input[type='email']::placeholder,
.nl-form-wrap input[type='email']::placeholder {
    color: var(--muted-l) !important;
    opacity: 1 !important;
}

/* Button base */
.sc-form-wrap .leform-form.leform-form-1 .leform-button,
.sc-form-wrap .leform-form.leform-form-1 .leform-button:visited,
.nl-form-wrap .leform-form.leform-form-1 .leform-button,
.nl-form-wrap .leform-form.leform-form-1 .leform-button:visited {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 0 14px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--parchment) !important;
    background-color: var(--sky) !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    transition: background 0.2s !important;
    text-decoration: none !important;
    line-height: 1 !important;
}
.sc-form-wrap .leform-form.leform-form-1 .leform-button span,
.nl-form-wrap .leform-form.leform-form-1 .leform-button span {
    display: block !important;
    line-height: 1 !important;
}
.sc-form-wrap .leform-form.leform-form-1 .leform-button:hover,
.nl-form-wrap .leform-form.leform-form-1 .leform-button:hover {
    background-color: var(--sky-d) !important;
}

/* Per-card button colors */
.sc-retreats .sc-form-wrap .leform-form.leform-form-1 .leform-button { background-color: var(--gold) !important; }
.sc-retreats .sc-form-wrap .leform-form.leform-form-1 .leform-button:hover { background-color: var(--gold-d) !important; }

.sc-shop .sc-form-wrap .leform-form.leform-form-1 .leform-button { background-color: #C4522A !important; }
.sc-shop .sc-form-wrap .leform-form.leform-form-1 .leform-button:hover { background-color: #a33d1f !important; }

.sc-journeys .sc-form-wrap .leform-form.leform-form-1 .leform-button { background-color: var(--sky) !important; }
.sc-journeys .sc-form-wrap .leform-form.leform-form-1 .leform-button:hover { background-color: var(--sky-d) !important; }

/* Newsletter button — sky (default already set above) */

/* Confirmation message */
.sc-form-wrap .leform-element-html h4,
.nl-form-wrap .leform-element-html h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--earth);
    margin-bottom: 6px;
}
.sc-form-wrap .leform-element-html p,
.nl-form-wrap .leform-element-html p {
    font-size: 10px;
    color: var(--muted);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   SMASH BALLOON — Instagram feed
   Styles added after plugin is connected and shortcode is set.
═══════════════════════════════════════════════════════════ */
