/**
 * FormCraft Theme: Ignition Fitness
 *
 * Dark theme with orange accent matching the Ignition Fitness brand.
 * Requires Barlow font (400, 600) from Google Fonts.
 *
 * Color Palette:
 * - Accent: #E8390E
 * - Accent Hover: #FF6B2B
 * - Text: #F5F0EB
 * - Secondary/Labels: #B0A89E
 * - Placeholders: #6B6560
 * - Input Borders: #444
 * - Background: transparent
 */

/* =========================================================================
   Form Wrapper - Reset defaults
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness {
    background: transparent;
    max-width: 100%;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-form {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #F5F0EB;
    background: transparent;
}

/* =========================================================================
   Labels
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-label {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #B0A89E;
    margin-bottom: 8px;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-required-mark {
    color: #E8390E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-field-description {
    color: #6B6560;
    font-size: 0.75rem;
}

/* =========================================================================
   Text Inputs, Email, Tel, Number - Underline style
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    border-radius: 0;
    padding: 12px 0;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #F5F0EB;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-input:focus {
    outline: none;
    border-bottom-color: #E8390E;
    box-shadow: 0 2px 8px rgba(232, 57, 14, 0.25);
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-input::placeholder {
    color: #6B6560;
}

/* =========================================================================
   Textarea - Full border style
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-textarea {
    background: transparent;
    border: 1px solid #444;
    border-radius: 0;
    padding: 14px;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #F5F0EB;
    box-shadow: none;
    resize: vertical;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-textarea:focus {
    outline: none;
    border-color: #E8390E;
    box-shadow: none;
}

/* =========================================================================
   Select Dropdowns - Underline style with custom arrow
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid #444;
    border-radius: 0;
    padding: 12px 24px 12px 0;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #6B6560;
    box-shadow: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23B0A89E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-select:focus {
    outline: none;
    border-bottom-color: #E8390E;
    box-shadow: 0 2px 8px rgba(232, 57, 14, 0.25);
}

/* Select with value selected */
.fc-form-wrapper.fc-theme-ignition-fitness .fc-select:not(:invalid),
.fc-form-wrapper.fc-theme-ignition-fitness .fc-select option:not([value=""]) {
    color: #F5F0EB;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-select option {
    background: #1a1a1a;
    color: #F5F0EB;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-select option[value=""] {
    color: #6B6560;
}

/* =========================================================================
   Radio & Checkbox
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-radio-group,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-checkbox-group {
    gap: 10px;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-radio-label,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-checkbox-label {
    color: #F5F0EB;
    font-size: 0.95rem;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-radio-label input,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-checkbox-label input {
    accent-color: #E8390E;
}

/* =========================================================================
   Toggle Switch
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-toggle-label {
    color: #F5F0EB;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-toggle-track {
    background: #444;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-toggle-switch input:checked + .fc-toggle-track {
    background: #E8390E;
}

/* =========================================================================
   Range Slider
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-range {
    accent-color: #E8390E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-range-value {
    background: #333;
    color: #F5F0EB;
    border-radius: 0;
}

/* =========================================================================
   Rating Stars
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-rating-star {
    color: #444;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-rating-star.fc-star-active,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-rating-star.fc-star-hover {
    color: #E8390E;
}

/* =========================================================================
   NPS Scale
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-nps-btn {
    background: transparent;
    border: 1px solid #444;
    border-radius: 0;
    color: #B0A89E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-nps-btn:hover {
    border-color: #E8390E;
    color: #E8390E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-nps-btn.fc-nps-active {
    background: #E8390E;
    border-color: #E8390E;
    color: #F5F0EB;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-nps-labels {
    color: #6B6560;
}

/* =========================================================================
   Likert Scale
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-likert-table th,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-likert-table td {
    border-bottom-color: #333;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-likert-col-header {
    color: #B0A89E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-likert-row-label {
    color: #F5F0EB;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-likert-cell input[type="radio"] {
    accent-color: #E8390E;
}

/* =========================================================================
   Signature Pad
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-signature-pad {
    background: transparent;
    border: 1px dashed #444;
    border-radius: 0;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-signature-pad:hover {
    border-color: #6B6560;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-signature-pad:active,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-signature.fc-signature-filled .fc-signature-pad {
    border-style: solid;
    border-color: #E8390E;
    background: transparent;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-signature::after {
    color: #6B6560;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-signature::before {
    border-bottom-color: #444;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-signature-clear {
    background: transparent;
    border: 1px solid #444;
    color: #B0A89E;
    border-radius: 0;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-signature-clear:hover {
    background: transparent;
    border-color: #E8390E;
    color: #E8390E;
}

/* =========================================================================
   File Upload
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-dropzone {
    background: transparent;
    border: 1px dashed #444;
    border-radius: 0;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-dropzone:hover,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-dropzone.fc-dragover {
    border-color: #E8390E;
    background: rgba(232, 57, 14, 0.05);
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-icon {
    color: #6B6560;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-text {
    color: #F5F0EB;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-hint {
    color: #6B6560;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-upload.fc-has-files .fc-file-dropzone {
    border-color: #E8390E;
    background: transparent;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-upload.fc-has-files .fc-file-dropzone::after {
    color: #E8390E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-item {
    background: transparent;
    border: 1px solid #E8390E;
    border-radius: 0;
    box-shadow: none;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-item-icon {
    background: rgba(232, 57, 14, 0.15);
    color: #E8390E;
    border-radius: 0;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-item-name {
    color: #F5F0EB;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-item-size {
    color: #6B6560;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-item-check {
    background: #E8390E;
    border-radius: 0;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-file-item-remove:hover {
    background: transparent;
    color: #FF6B2B;
}

/* =========================================================================
   Layout Elements
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-heading {
    color: #F5F0EB;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-paragraph {
    color: #B0A89E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-divider {
    border-top-color: #444;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-html-block {
    color: #F5F0EB;
}

/* =========================================================================
   Multi-step Progress
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-step-indicator {
    background: transparent;
    border: 1px solid #444;
    border-radius: 0;
    color: #6B6560;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-step-indicator.fc-step-active {
    background: #E8390E;
    border-color: #E8390E;
    color: #F5F0EB;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-step-indicator.fc-step-complete {
    background: transparent;
    border-color: #E8390E;
    color: #E8390E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-step-number {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-step-active .fc-step-number {
    background: rgba(255, 255, 255, 0.2);
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-step-complete .fc-step-number {
    background: #E8390E;
    color: #F5F0EB;
    border-radius: 0;
}

/* =========================================================================
   Submit Button - Fill sweep hover effect
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-btn {
    font-family: 'Barlow', sans-serif;
    border-radius: 0;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-btn-submit {
    position: relative;
    overflow: hidden;
    background: #E8390E;
    border: none;
    color: #F5F0EB;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 18px 44px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    z-index: 1;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #FF6B2B;
    transition: left 0.3s ease;
    z-index: -1;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-btn-submit:hover {
    transform: translateY(-1px);
    background: #E8390E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-btn-submit:hover::before {
    left: 0;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-btn-submit:disabled:hover::before {
    left: -100%;
}

/* Previous/Next buttons for multi-step */
.fc-form-wrapper.fc-theme-ignition-fitness .fc-btn-prev,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-btn-next {
    background: transparent;
    border: 1px solid #444;
    color: #B0A89E;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-btn-prev:hover,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-btn-next:hover {
    background: transparent;
    border-color: #E8390E;
    color: #E8390E;
}

/* Small buttons */
.fc-form-wrapper.fc-theme-ignition-fitness .fc-btn-sm {
    font-size: 0.65rem;
    padding: 8px 16px;
}

/* =========================================================================
   Payment Styles
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-payment {
    background: transparent;
    padding: 0;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-payment-value {
    color: #F5F0EB;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-payment-symbol {
    color: #B0A89E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-product-option {
    background: transparent;
    border: 1px solid #444;
    border-radius: 0;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-product-option:hover {
    border-color: #E8390E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-product-price {
    color: #E8390E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-payment-unit-price {
    color: #B0A89E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-subtotal-value {
    color: #E8390E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-payment-summary {
    background: rgba(68, 68, 68, 0.2);
    border-radius: 0;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-payment-summary-total {
    border-top-color: #444;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-summary-value {
    color: #E8390E;
}

/* Stripe Card Element */
.fc-form-wrapper.fc-theme-ignition-fitness .fc-stripe-card-element {
    background: transparent;
    border: 1px solid #444;
    border-radius: 0;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-stripe-card-element:focus-within {
    border-color: #E8390E;
    box-shadow: 0 0 8px rgba(232, 57, 14, 0.25);
}

/* Payment Tabs */
.fc-form-wrapper.fc-theme-ignition-fitness .fc-payment-tab {
    background: transparent;
    border: 1px solid #444;
    border-radius: 0;
    color: #B0A89E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-payment-tab:hover {
    border-color: #6B6560;
    color: #F5F0EB;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-payment-tab-active {
    border-color: #E8390E;
    background: rgba(232, 57, 14, 0.1);
    color: #E8390E;
}

/* Has payment button override */
.fc-form-wrapper.fc-theme-ignition-fitness .fc-has-payment .fc-btn-submit {
    background: #E8390E;
    border-color: #E8390E;
}

/* Discount code */
.fc-form-wrapper.fc-theme-ignition-fitness .fc-discount-code-btn {
    color: #E8390E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-discount-code-btn:hover {
    color: #FF6B2B;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-discount-apply {
    background: transparent;
    border: 1px solid #444;
    color: #B0A89E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-discount-apply:hover:not(:disabled) {
    background: transparent;
    border-color: #E8390E;
    color: #E8390E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-discount-code-applied {
    background: rgba(232, 57, 14, 0.1);
    border-color: #E8390E;
    color: #E8390E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-discount-code-message.fc-discount-success {
    color: #E8390E;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-payment-summary-discount {
    color: #E8390E;
}

/* =========================================================================
   Validation Errors - Text only, no background/border
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-field-error {
    color: #FF6B2B;
    font-size: 0.75rem;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 6px;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-form-errors {
    color: #FF6B2B;
    font-size: 0.75rem;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 12px;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-stripe-card-errors,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-paypal-errors {
    color: #FF6B2B;
    font-size: 0.75rem;
}

/* Error state on inputs */
.fc-form-wrapper.fc-theme-ignition-fitness .fc-field-has-error .fc-input,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-field-has-error .fc-select,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-field-has-error .fc-textarea {
    border-color: #FF6B2B;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-field-has-error .fc-input:focus,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-field-has-error .fc-select:focus,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-field-has-error .fc-textarea:focus {
    box-shadow: 0 2px 8px rgba(255, 107, 43, 0.25);
}

/* =========================================================================
   Success/Confirmation Message
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-success-message {
    background: transparent;
    border: none;
    border-left: 3px solid #E8390E;
    border-radius: 0;
    padding: 20px 20px 20px 16px;
    color: #F5F0EB;
    font-size: 1rem;
    text-align: left;
    box-shadow: none;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-success-message::before {
    display: none;
}

/* =========================================================================
   Date and Time Inputs
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness input[type="date"].fc-input,
.fc-form-wrapper.fc-theme-ignition-fitness input[type="time"].fc-input {
    color-scheme: dark;
}

/* =========================================================================
   Color Input
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-color {
    border: 1px solid #444;
    border-radius: 0;
    background: transparent;
}

/* =========================================================================
   Field Focus Visible (Keyboard navigation)
   ========================================================================= */

.fc-form-wrapper.fc-theme-ignition-fitness .fc-input:focus-visible,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-select:focus-visible,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-textarea:focus-visible,
.fc-form-wrapper.fc-theme-ignition-fitness .fc-btn:focus-visible {
    outline: 2px solid #E8390E;
    outline-offset: 2px;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-rating-star:focus-visible {
    outline: 2px solid #E8390E;
    border-radius: 0;
}

.fc-form-wrapper.fc-theme-ignition-fitness .fc-nps-btn:focus-visible {
    outline: 2px solid #E8390E;
    outline-offset: 1px;
}

/* =========================================================================
   Responsive Adjustments
   ========================================================================= */

@media screen and (max-width: 600px) {
    .fc-form-wrapper.fc-theme-ignition-fitness .fc-btn-submit {
        padding: 16px 32px;
        width: 100%;
    }
}
