/**
 * HubSpot Progressive Forms - NPG Multi-Step System Recreation
 * 
 * This recreates the exact HubSpot multi-step form styling with:
 * - Vertical slide animations
 * - Progress bar styling
 * - Form transitions
 * - Mobile responsive design
 */

/* ============================================
   SLIDESHOW WRAPPER
   ============================================ */

.npg-multi-step-form .slideshow-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.npg-multi-step-form .slides {
    position: relative;
    min-height: 400px;
    width: 100%;
}

/* ============================================
   SLIDE ANIMATIONS
   ============================================ */

.npg-multi-step-form .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition: all 0.6s ease-in-out;
    pointer-events: none;
}

.npg-multi-step-form .slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 10;
}

.npg-multi-step-form .slide.completed {
    transform: translateY(-50px);
}

/* ============================================
   SLIDE CONTENT
   ============================================ */

.npg-multi-step-form .slide .content {
    width: 100%;
}

.npg-multi-step-form .slide .inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.npg-multi-step-form .slide .block_1,
.npg-multi-step-form .slide .block_2 {
    width: 100%;
}

.npg-multi-step-form .slide .con {
    width: 100%;
}

/* ============================================
   PROGRESS BAR (Custom Design)
   ============================================ */

.npg-multi-step-form .progress-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.npg-multi-step-form .progress-bar > div {
    flex: 1;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease-in-out;
}

.npg-multi-step-form .progress-bar > div.active {
    background-color: #2B4BFF;
}

/* ============================================
   EYEBROW / STEP INDICATOR
   ============================================ */

.npg-multi-step-form .eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2B4BFF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* ============================================
   TITLES
   ============================================ */

.npg-multi-step-form .slide .title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .npg-multi-step-form .slide .title {
        font-size: 2rem;
    }
}

.npg-multi-step-form .slide .description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* ============================================
   FORM WRAPPER
   ============================================ */

.npg-multi-step-form .form_wrap {
    width: 100%;
    margin-bottom: 1.5rem;
    position: relative;
    min-height: 100px;
}

.npg-multi-step-form .form_wrap.fadeit {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* ============================================
   HUBSPOT FORM ELEMENTS
   ============================================ */

.npg-multi-step-form .hs-form {
    width: 100%;
}

.npg-multi-step-form .hs-form-field {
    margin-bottom: 1.5rem;
}

.npg-multi-step-form .hs-form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.npg-multi-step-form .hs-form-required {
    color: #ef4444;
    margin-left: 0.25rem;
}

/* ============================================
   INPUT FIELDS
   ============================================ */

.npg-multi-step-form .hs-input,
.npg-multi-step-form .hs-input[type="text"],
.npg-multi-step-form .hs-input[type="email"],
.npg-multi-step-form .hs-input[type="tel"],
.npg-multi-step-form .hs-input[type="number"],
.npg-multi-step-form select.hs-input,
.npg-multi-step-form textarea.hs-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    font-family: inherit;
}

.npg-multi-step-form .hs-input:focus,
.npg-multi-step-form select.hs-input:focus,
.npg-multi-step-form textarea.hs-input:focus {
    outline: none;
    border-color: #2B4BFF;
    box-shadow: 0 0 0 3px rgba(43, 75, 255, 0.1);
}

.npg-multi-step-form .hs-input::placeholder {
    color: #9ca3af;
}

.npg-multi-step-form textarea.hs-input {
    min-height: 120px;
    resize: vertical;
}

/* Select dropdown styling */
.npg-multi-step-form select.hs-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ============================================
   CHECKBOX & RADIO BUTTONS
   ============================================ */

.npg-multi-step-form .hs-form-checkbox,
.npg-multi-step-form .hs-form-radio {
    margin-bottom: 0.5rem;
}

.npg-multi-step-form .hs-form-checkbox label,
.npg-multi-step-form .hs-form-radio label {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    text-transform: none;
    cursor: pointer;
}

.npg-multi-step-form .hs-form-checkbox input[type="checkbox"],
.npg-multi-step-form .hs-form-radio input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

/* ============================================
   BUTTONS
   ============================================ */

.npg-multi-step-form button.cta_1,
.npg-multi-step-form a.cta_1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #222225;
    background-color: #D7E024;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-family: inherit;
    text-decoration: none;
    min-width: 150px;
}

.npg-multi-step-form button.cta_1:hover,
.npg-multi-step-form a.cta_1:hover {
    background-color: #c5cc1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.npg-multi-step-form button.cta_1:active,
.npg-multi-step-form a.cta_1:active {
    transform: translateY(0);
}

.npg-multi-step-form button.cta_1:focus,
.npg-multi-step-form a.cta_1:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(215, 224, 36, 0.4);
}

.npg-multi-step-form .flex.end {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Button with arrow icon */
.npg-multi-step-form .arrow.down::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.2s ease-in-out;
}

.npg-multi-step-form .arrow.left::before {
    content: '←';
    margin-right: 0.5rem;
    transition: transform 0.2s ease-in-out;
}

.npg-multi-step-form .cta_1:hover.arrow.down::after {
    transform: translateX(3px);
}

.npg-multi-step-form .cta_1:hover.arrow.left::before {
    transform: translateX(-3px);
}

/* ============================================
   ERROR MESSAGES
   ============================================ */

.npg-multi-step-form .hs-error-msgs {
    margin-top: 0.5rem;
    list-style: none;
    padding: 0;
}

.npg-multi-step-form .hs-error-msg {
    font-size: 0.875rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.npg-multi-step-form .hs-input.error,
.npg-multi-step-form .hs-input.invalid {
    border-color: #ef4444;
}

.npg-multi-step-form .hs-input.error:focus,
.npg-multi-step-form .hs-input.invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* ============================================
   SUCCESS MESSAGE / THANK YOU
   ============================================ */

.npg-multi-step-form .thank-you-slide {
    text-align: center;
}

.npg-multi-step-form .submitted-message {
    padding: 1.5rem;
    background-color: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 0.5rem;
    color: #065f46;
    font-size: 1rem;
    line-height: 1.5;
}

/* ============================================
   HIDE HUBSPOT SUBMIT BUTTON
   ============================================ */

.npg-multi-step-form .hs-submit {
    display: none !important;
}

/* ============================================
   LOADING STATE
   ============================================ */

.npg-multi-step-form .hs-form.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.npg-multi-step-form .hs-form.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2rem;
    height: 2rem;
    border: 3px solid #e5e7eb;
    border-top-color: #2B4BFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================
   PRIVACY & LEGAL TEXT
   ============================================ */

.npg-multi-step-form .hs-form-field .hs-richtext {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.npg-multi-step-form .hs-form-field .hs-richtext a {
    color: #2B4BFF;
    text-decoration: underline;
}

.npg-multi-step-form .hs-form-field .hs-richtext a:hover {
    color: #1e3acc;
}

/* ============================================
   RECAPTCHA
   ============================================ */

.npg-multi-step-form .hs-recaptcha {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .npg-multi-step-form .slide .inner {
        gap: 1.5rem;
    }
    
    .npg-multi-step-form .hs-form-field {
        margin-bottom: 1.25rem;
    }
    
    .npg-multi-step-form button.cta_1,
    .npg-multi-step-form a.cta_1 {
        width: 100%;
        padding: 1rem;
    }
    
    .npg-multi-step-form .hs-input,
    .npg-multi-step-form select.hs-input,
    .npg-multi-step-form textarea.hs-input {
        font-size: 1rem;
    }
    
    .npg-multi-step-form .slide .title {
        font-size: 1.5rem;
    }
}

/* ============================================
   DECORATION IMAGES
   ============================================ */

.npg-multi-step-form img.decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
    z-index: 0;
}

/* ============================================
   FADE ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.npg-multi-step-form .fadeit {
    animation: fadeOut 0.3s ease-in-out forwards;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.npg-multi-step-form *:focus-visible {
    outline: 2px solid #2B4BFF;
    outline-offset: 2px;
}

.npg-multi-step-form button:disabled,
.npg-multi-step-form button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
