/* Material Design 3 - Kneshecke Theme */
:root {
    /* M3 Color System - Purple/Violet Seed */
    --md-sys-color-primary: #6750A4;
    --md-sys-color-on-primary: #FFFFFF;
    --md-sys-color-primary-container: #EADDFF;
    --md-sys-color-on-primary-container: #21005D;

    --md-sys-color-secondary: #625B71;
    --md-sys-color-on-secondary: #FFFFFF;
    --md-sys-color-secondary-container: #E8DEF8;
    --md-sys-color-on-secondary-container: #1D192B;

    --md-sys-color-background: #FFFBFE;
    --md-sys-color-on-background: #1C1B1F;
    --md-sys-color-surface: #FFFBFE;
    --md-sys-color-on-surface: #1C1B1F;

    --md-sys-color-outline: #79747E;
    --md-sys-color-error: #B3261E;

    /* Shapes */
    --md-sys-shape-corner-small: 4px;
    --md-sys-shape-corner-medium: 12px;
    --md-sys-shape-corner-large: 16px;
    --md-sys-shape-corner-full: 100px;

    /* Typography */
    --md-sys-typescale-body-large-size: 16px;
    --md-sys-typescale-body-large-weight: 400;
    --md-sys-typescale-label-large-size: 14px;
    --md-sys-typescale-label-large-weight: 500;
}

.kneshecke-multistep-container {
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    max-width: 680px;
    margin: 40px auto;
    background: var(--md-sys-color-surface);
    padding: 24px;
    /* M3 Elevation Level 1 */
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
    border-radius: var(--md-sys-shape-corner-large);
    color: var(--md-sys-color-on-surface);
}

/* Typography Overrides for CF7 */
.wpcf7-form p {
    margin-bottom: 16px;
    font-size: var(--md-sys-typescale-body-large-size);
}

.wpcf7-form label {
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
    margin-bottom: 8px;
    display: block;
}

/* Inputs (M3 Outlined Text Field style) */
.wpcf7-form-control-wrap input[type="text"],
.wpcf7-form-control-wrap input[type="email"],
.wpcf7-form-control-wrap input[type="tel"],
.wpcf7-form-control-wrap input[type="date"],
.wpcf7-form-control-wrap input[type="number"],
.wpcf7-form-control-wrap textarea,
.wpcf7-form-control-wrap select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-small);
    font-size: 16px;
    background: transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    margin-top: 4px;
}

.wpcf7-form-control-wrap input:focus,
.wpcf7-form-control-wrap textarea:focus,
.wpcf7-form-control-wrap select:focus {
    border-color: var(--md-sys-color-primary);
    box-shadow: 0 0 0 1px var(--md-sys-color-primary);
    outline: none;
}

/* Progress Bar */
.kneshecke-progress-bar {
    height: 4px;
    width: 100%;
    background-color: var(--md-sys-color-secondary-container);
    border-radius: var(--md-sys-shape-corner-full);
    overflow: hidden;
    margin-bottom: 32px;
}

.kneshecke-progress-track {
    height: 100%;
    background-color: var(--md-sys-color-primary);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Step Container */
.kneshecke-step {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.kneshecke-step.active {
    opacity: 1;
    visibility: visible;
    height: auto;
    transform: translateY(0);
}

/* Buttons (M3) */
.kneshecke-multistep-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--md-sys-color-secondary-container);
}

.mdc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 80px;
    border: none;
    outline: none;
    line-height: inherit;
    user-select: none;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden;
    vertical-align: middle;
    border-radius: var(--md-sys-shape-corner-full);
    padding: 10px 24px;
    font-size: var(--md-sys-typescale-label-large-size);
    font-weight: var(--md-sys-typescale-label-large-weight);
    letter-spacing: 0.1px;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
    cursor: pointer;
    font-family: inherit;
}

.mdc-button--raised {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    /* Elevation 1 */
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
}

.mdc-button--raised:hover {
    background-color: #523E8E;
    /* Darker shade */
    /* Elevation 2 */
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
}

.mdc-button--raised:active {
    transform: scale(0.98);
}

.mdc-button--outlined {
    background-color: transparent;
    border: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-primary);
}

.mdc-button--outlined:hover {
    background-color: var(--md-sys-color-secondary-container);
    border-color: var(--md-sys-color-primary);
}

/* Validation Errors */
span.wpcf7-not-valid-tip {
    color: var(--md-sys-color-error);
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.wpcf7-not-valid {
    border-color: var(--md-sys-color-error) !important;
}