/* Root variables for primary colors inspired by the provided design */
/*
 * Colour palette
 *
 * The client specified a simple two‑colour theme: orange (#FFB237) and black (#000000).
 * These root variables centralise the palette so it’s easy to adjust
 * throughout the form.  The secondary colour is used for highlights like the
 * progress bar and primary call‑to‑action buttons, while the primary colour
 * handles headings and dark text.  Neutral shades round out the palette
 * for borders and backgrounds.
 */
:root {
    /* Primary (used for text and dark accents) */
    --aryiqf-primary: #000000;
    /* Secondary (used for buttons, badge, progress bar etc.) */
    --aryiqf-secondary: #FFB237;
    /* Subtle border colour for inputs and containers */
    --aryiqf-border: #e2e8f0;
    /* Base text colour for descriptive copy */
    --aryiqf-text: #4b5563;
    /* Lighter text for hints */
    --aryiqf-light: #64748b;
    /* Background for success messages */
    --aryiqf-bg: #f8fafc;
    /* Constant white used for panels */
    --aryiqf-white: #ffffff;
}

/* Reset and base styles */
.aryiqf-container * {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.insurance-quote-form-active {
    /* Only apply special background when the shortcode is present */
    background: linear-gradient(135deg, #eff6ff, #ffffff) !important;
  
    font-family: 'Inter', sans-serif !important;
}

.aryiqf-container {
    max-width: 900px !important;
    margin: 0 auto !important;
}

.aryiqf-form-card {
    background: var(--aryiqf-white) !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08) !important;
}

/*
 * The header uses a gradient from the darkest shade to the accent colour.
 * For the new palette we fade from a deep black through the orange accent.
 */
.aryiqf-form-header {
    padding: 40px 50px !important;
    background: linear-gradient(135deg, var(--aryiqf-primary), var(--aryiqf-secondary)) !important;
    color: var(--aryiqf-white) !important;
}

.aryiqf-badge {
    display: inline-block !important;
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
}

.aryiqf-form-header h1 {
    font-size: 32px !important;
    margin-bottom: 10px !important;
}

.aryiqf-form-header p {
    opacity: 0.9 !important;
}

.aryiqf-form-body {
    padding: 40px 50px !important;
}

.aryiqf-selector {
    margin-bottom: 30px !important;
}

.aryiqf-selector label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: var(--aryiqf-primary) !important;
}

.aryiqf-selector select {
    width: 100% !important;
    height: 50px !important;
    padding: 0 14px !important;
    border: 2px solid var(--aryiqf-border) !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    outline: none !important;
}

.aryiqf-progress-wrap {
    margin-bottom: 30px !important;
}

.aryiqf-progress-bar-bg {
    height: 10px !important;
    background: var(--aryiqf-border) !important;
    border-radius: 20px !important;
}

.aryiqf-progress-bar {
    height: 10px !important;
    width: 0% !important;
    border-radius: 20px !important;
    background: var(--aryiqf-secondary) !important;
    transition: width 0.4s ease !important;
}

.aryiqf-quote-form {
    display: none !important;
    margin-top: 20px !important;
}

.aryiqf-quote-form.active {
    display: block !important;
}

.aryiqf-step {
    display: none !important;
}

.aryiqf-step.active {
    display: block !important;
}

.aryiqf-step-title {
    margin-bottom: 20px !important;
    font-size: 24px !important;
    color: var(--aryiqf-primary) !important;
}

.aryiqf-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

.aryiqf-field {
    position: relative !important;
}

.aryiqf-field.aryiqf-full {
    grid-column: 1 / -1 !important;
}

.aryiqf-field input,
.aryiqf-field select {
    width: 100% !important;
    height: 50px !important;
    border: 2px solid var(--aryiqf-border) !important;
    border-radius: 14px !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    outline: none !important;
}

.aryiqf-field textarea {
    width: 100% !important;
    min-height: 100px !important;
    border: 2px solid var(--aryiqf-border) !important;
    border-radius: 14px !important;
    padding: 14px !important;
    resize: vertical !important;
    font-size: 15px !important;
}

/* Highlight fields with validation errors */
.aryiqf-error {
    border-color: #ef4444 !important; /* red border to indicate error */
}

.aryiqf-navigation {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 30px !important;
}

.aryiqf-btn {
    border: none !important;
    cursor: pointer !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: 0.3s !important;
    font-size: 16px !important;
}

.aryiqf-btn-primary {
    background: var(--aryiqf-secondary) !important;
    color: var(--aryiqf-white) !important;
}

.aryiqf-btn-primary:hover {
    transform: translateY(-2px) !important;
}

.aryiqf-btn-secondary {
    background: #f1f5f9 !important;
    color: var(--aryiqf-primary) !important;
}

.aryiqf-submit-btn {
    display: none !important;
}

.aryiqf-success {
    display: none !important;
    text-align: center !important;
    margin-top: 20px !important;
    padding: 30px !important;
    background: var(--aryiqf-bg) !important;
    border-radius: 14px !important;
}

/* Visible success state. This is required because the plugin CSS uses
   !important for theme isolation, so jQuery .show() cannot override it. */
.aryiqf-success.aryiqf-success-visible {
    display: block !important;
}

.aryiqf-success h2 {
    font-size: 28px !important;
    margin-bottom: 10px !important;
}

.aryiqf-success p {
    font-size: 16px !important;
}

.aryiqf-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .aryiqf-form-grid {
        grid-template-columns: 1fr !important;
    }
    .aryiqf-form-header {
        padding: 30px 35px !important;
    }
    .aryiqf-form-header h1 {
        font-size: 28px !important;
    }
    .aryiqf-form-body {
        padding: 30px 35px !important;
    }
}
