/*!
 * Helderkruin Kruinerlyn — frontend styles
 *
 * Sections:
 *   1. Shared tokens + icon rules
 *   2. Page header
 *   3. Layout grid (form + info)
 *   4. Form card
 *   5. Form fields (input, select, textarea, checkbox)
 *   6. Submit button + status
 *   7. Success state
 *   8. Info card (contact rows + social + tagline)
 *   9. Footer trust line
 *  10. Mobile + reduced-motion
 */

/* =========================================================================
   1. SHARED TOKENS + ICON RULES
   ========================================================================= */
.hkcl-wrap *,
.hkcl-wrap *::before,
.hkcl-wrap *::after { box-sizing: border-box; }

.hkcl-wrap {
    font-family: 'Montserrat', sans-serif;
    color: #15204D;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 0;
}

/* Inline SVG icons — defensive against theme overrides */
.hkcl-wrap .hkcl-icon {
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    line-height: 1 !important;
    fill: currentColor !important;
    color: inherit !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    vertical-align: -0.125em;
}

.hkcl-wrap .hkcl-icon path {
    fill: currentColor !important;
}

/* =========================================================================
   2. PAGE HEADER
   ========================================================================= */
.hkcl-header {
    text-align: center;
    margin: 0 auto 36px;
    max-width: 760px;
    padding: 0 16px;
}

.hkcl-header__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #E71615;
    background: rgba(231, 22, 21, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.hkcl-header__title {
    margin: 0 0 12px 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(30px, 4.4vw, 46px);
    letter-spacing: 1.2px;
    line-height: 1.05;
    text-transform: uppercase;
    font-weight: 400;
    color: #15204D;
}

.hkcl-header__intro {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #55627E;
}

/* =========================================================================
   3. LAYOUT GRID
   ========================================================================= */
.hkcl-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 0 16px;
}

/* =========================================================================
   4. FORM CARD
   ========================================================================= */
.hkcl-form-card {
    background: #FFFFFF;
    border-radius: 22px;
    padding: 32px 32px 28px;
    box-shadow: 0 18px 40px -20px rgba(21, 32, 77, 0.18);
    border-top: 4px solid #15204D;
    position: relative;
}

.hkcl-form-card__header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px dashed #E5EAF3;
}

.hkcl-form-card__eyebrow {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #15204D;
    margin-bottom: 6px;
}

.hkcl-form-card__intro {
    margin: 0;
    font-size: 13px;
    color: #55627E;
    line-height: 1.5;
    font-style: italic;
}

/* =========================================================================
   5. FORM FIELDS
   ========================================================================= */
.hkcl-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hkcl-form__row {
    display: grid;
    gap: 18px;
}

.hkcl-form__row--two {
    grid-template-columns: 1fr 1fr;
}

.hkcl-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.hkcl-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.hkcl-field__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #15204D;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hkcl-field__required {
    color: #E71615;
    font-size: 14px;
    line-height: 1;
}

/* Inputs and textarea — defensive !important so theme can't blow up */
.hkcl-wrap .hkcl-field__input,
.hkcl-wrap .hkcl-field__select {
    width: 100% !important;
    padding: 13px 16px !important;
    border: 2px solid #E5EAF3 !important;
    border-radius: 12px !important;
    background: #F9FAFD !important;
    color: #15204D !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    transition: border-color 0.2s ease, background 0.2s ease,
                box-shadow 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

.hkcl-wrap .hkcl-field__input::placeholder {
    color: #9aa3b8 !important;
    opacity: 1 !important;
}

.hkcl-wrap .hkcl-field__input:hover,
.hkcl-wrap .hkcl-field__select:hover {
    border-color: #cdd4e1 !important;
}

.hkcl-wrap .hkcl-field__input:focus,
.hkcl-wrap .hkcl-field__select:focus {
    border-color: #15204D !important;
    background: #FFFFFF !important;
    box-shadow: 0 0 0 4px rgba(21, 32, 77, 0.1) !important;
}

.hkcl-wrap .hkcl-field__textarea {
    resize: vertical !important;
    min-height: 120px !important;
    font-family: 'Montserrat', sans-serif !important;
}

.hkcl-wrap .hkcl-field--error .hkcl-field__input,
.hkcl-wrap .hkcl-field--error .hkcl-field__select {
    border-color: #E71615 !important;
    background: rgba(231, 22, 21, 0.04) !important;
}

.hkcl-wrap .hkcl-field--error .hkcl-field__input:focus,
.hkcl-wrap .hkcl-field--error .hkcl-field__select:focus {
    box-shadow: 0 0 0 4px rgba(231, 22, 21, 0.12) !important;
}

.hkcl-field__error {
    font-size: 12px;
    color: #E71615;
    font-weight: 600;
    line-height: 1.3;
    min-height: 0;
    transition: min-height 0.2s ease;
}

.hkcl-field--error .hkcl-field__error {
    min-height: 16px;
}

/* Custom-styled select with chevron */
.hkcl-select-wrap {
    position: relative;
}

.hkcl-select-wrap__chev {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #15204D;
    font-size: 14px;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.hkcl-select-wrap:focus-within .hkcl-select-wrap__chev {
    transform: translateY(-50%) rotate(180deg);
}

.hkcl-wrap .hkcl-field__select {
    padding-right: 44px !important;
    cursor: pointer;
}

/* Checkbox */
.hkcl-field--checkbox {
    margin-top: 4px;
}

.hkcl-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.45;
    color: #55627E;
}

.hkcl-checkbox input[type="checkbox"] {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}

.hkcl-checkbox__box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #cdd4e1;
    border-radius: 6px;
    background: #FFFFFF;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease;
    margin-top: 1px;
}

.hkcl-checkbox__box::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 11px;
    border: solid #FFFFFF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hkcl-checkbox:hover .hkcl-checkbox__box {
    border-color: #15204D;
}

.hkcl-checkbox input[type="checkbox"]:checked + .hkcl-checkbox__box {
    background: #15204D;
    border-color: #15204D;
}

.hkcl-checkbox input[type="checkbox"]:checked + .hkcl-checkbox__box::after {
    transform: rotate(45deg) scale(1);
}

.hkcl-checkbox input[type="checkbox"]:focus-visible + .hkcl-checkbox__box {
    box-shadow: 0 0 0 4px rgba(21, 32, 77, 0.14);
}

.hkcl-checkbox__label {
    flex: 1;
}

/* =========================================================================
   6. SUBMIT BUTTON
   ========================================================================= */
.hkcl-form__actions {
    margin-top: 6px;
}

.hkcl-wrap .hkcl-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 32px !important;
    border: none !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #E71615 0%, #c11313 100%) !important;
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.25s ease,
                background 0.25s ease !important;
    box-shadow: 0 10px 24px -8px rgba(231, 22, 21, 0.5) !important;
    position: relative !important;
    min-width: 200px !important;
    overflow: hidden !important;
}

.hkcl-wrap .hkcl-btn:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 16px 32px -10px rgba(231, 22, 21, 0.6) !important;
}

.hkcl-wrap .hkcl-btn:active {
    transform: translateY(0) !important;
}

.hkcl-wrap .hkcl-btn:disabled {
    cursor: not-allowed !important;
    opacity: 0.85 !important;
}

.hkcl-wrap .hkcl-btn--secondary {
    background: #F0F3F9 !important;
    color: #15204D !important;
    box-shadow: 0 6px 14px -6px rgba(21, 32, 77, 0.18) !important;
}

.hkcl-wrap .hkcl-btn--secondary:hover:not(:disabled) {
    background: #15204D !important;
    color: #FFFFFF !important;
    box-shadow: 0 12px 24px -8px rgba(21, 32, 77, 0.3) !important;
}

.hkcl-btn__emoji {
    font-size: 16px;
    line-height: 1;
}

.hkcl-btn__spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    font-size: 18px;
}

.hkcl-btn--loading .hkcl-btn__label { opacity: 0; }
.hkcl-btn--loading .hkcl-btn__spinner {
    opacity: 1;
    animation: hkcl-spin 0.9s linear infinite;
}

@keyframes hkcl-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Status / generic error */
.hkcl-form__status {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #E71615;
    font-weight: 600;
    min-height: 0;
    transition: min-height 0.2s ease;
}

.hkcl-form__status:not(:empty) {
    margin-top: 8px;
    padding: 12px 14px;
    background: rgba(231, 22, 21, 0.08);
    border-left: 3px solid #E71615;
    border-radius: 0 10px 10px 0;
}

/* Privacy notice */
.hkcl-form__privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 16px;
    background: #F0F3F9;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #55627E;
}

.hkcl-form__privacy-icon {
    color: #7096C8;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

/* =========================================================================
   7. SUCCESS STATE
   ========================================================================= */
.hkcl-success {
    text-align: center;
    padding: 40px 20px 30px;
    animation: hkcl-fade-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hkcl-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hkcl-success__icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    box-shadow: 0 14px 30px -10px rgba(46, 125, 50, 0.5);
    animation: hkcl-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hkcl-pop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

.hkcl-success__title {
    margin: 0 0 12px 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #15204D;
    font-weight: 400;
}

.hkcl-success__message {
    margin: 0 0 24px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #55627E;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================================
   8. INFO CARD STACK
   ========================================================================= */
.hkcl-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 24px;
}

.hkcl-info-card {
    background: #FFFFFF;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 14px 30px -16px rgba(21, 32, 77, 0.18);
    border-top: 4px solid #7096C8;
}

.hkcl-info-card__title {
    margin: 0 0 18px 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #15204D;
    font-weight: 400;
    padding-bottom: 12px;
    border-bottom: 2px dashed #E5EAF3;
}

.hkcl-info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    color: #15204D;
    text-decoration: none;
    transition: transform 0.2s ease;
    border-bottom: 1px solid #F0F3F9;
}

.hkcl-info-row:last-child {
    border-bottom: none;
}

.hkcl-wrap a.hkcl-info-row {
    color: #15204D !important;
    text-decoration: none !important;
}

.hkcl-wrap a.hkcl-info-row--link:hover {
    transform: translateX(3px);
    text-decoration: none !important;
}

.hkcl-info-row__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(21, 32, 77, 0.08);
    color: #15204D;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: background 0.25s ease, color 0.25s ease, transform 0.3s ease;
}

.hkcl-info-row--link:hover .hkcl-info-row__icon {
    background: #15204D;
    color: #FFFFFF;
    transform: rotate(-6deg);
}

.hkcl-info-row__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hkcl-info-row__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #7096C8;
}

.hkcl-info-row__value {
    font-size: 14px;
    line-height: 1.45;
    color: #15204D;
    font-weight: 600;
    word-break: break-word;
}

/* Social */
.hkcl-info-card--social {
    border-top-color: #E71615;
}

.hkcl-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hkcl-wrap .hkcl-social__link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    background: #F6F8FC !important;
    color: #15204D !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.25s ease,
                box-shadow 0.25s ease, color 0.25s ease !important;
    box-shadow: 0 4px 10px -4px rgba(21, 32, 77, 0.12) !important;
}

.hkcl-wrap .hkcl-social__link:hover {
    transform: translateY(-2px) !important;
    color: #FFFFFF !important;
}

.hkcl-wrap .hkcl-social__link--facebook:hover  { background: #1877F2 !important; box-shadow: 0 10px 20px -6px rgba(24, 119, 242, 0.5) !important; }
.hkcl-wrap .hkcl-social__link--instagram:hover { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; box-shadow: 0 10px 20px -6px rgba(220, 39, 67, 0.5) !important; }
.hkcl-wrap .hkcl-social__link--website:hover   { background: #15204D !important; box-shadow: 0 10px 20px -6px rgba(21, 32, 77, 0.5) !important; }

/* Tagline pull-quote — Caveat font */
.hkcl-info-card--tagline {
    border-top-color: #E71615;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFF4D4 100%);
    padding: 24px 28px;
}

.hkcl-info-card--tagline p {
    margin: 0;
    font-family: 'Caveat', cursive;
    font-size: 22px;
    line-height: 1.3;
    color: #15204D;
    font-weight: 700;
    text-align: center;
}

/* =========================================================================
   9. FOOTER TRUST LINE
   ========================================================================= */
.hkcl-footer {
    margin-top: 36px;
    padding: 20px 16px;
    text-align: center;
}

.hkcl-footer p {
    margin: 0;
    font-family: 'Caveat', cursive;
    font-size: 22px;
    line-height: 1.4;
    color: #15204D;
    font-weight: 700;
}

/* =========================================================================
   10. MOBILE + REDUCED-MOTION
   ========================================================================= */
@media (max-width: 880px) {
    .hkcl-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .hkcl-info {
        position: static;
    }
}

@media (max-width: 640px) {
    .hkcl-form-card {
        padding: 24px 22px 20px;
        border-radius: 18px;
    }
    .hkcl-info-card {
        padding: 22px;
        border-radius: 18px;
    }
    .hkcl-form__row--two {
        grid-template-columns: 1fr;
    }
    .hkcl-wrap .hkcl-btn {
        width: 100% !important;
    }
    .hkcl-header__title {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hkcl-success,
    .hkcl-success__icon,
    .hkcl-btn,
    .hkcl-info-row,
    .hkcl-info-row__icon,
    .hkcl-social__link,
    .hkcl-checkbox__box::after {
        animation: none !important;
        transition: none !important;
    }
}
