/*
 * Styling für das Dachfenster Step‑by‑Step Formular.
 */
/*
 * Wrapper for the entire step‑by‑step form.  We apply a semi‑transparent
 * dark background so the form stands out against a busy hero image.  The
 * text colour on this container defaults to white so all child elements
 * inherit a readable base colour.  The orange hue used throughout the
 * plugin is defined on :root via the CSS variable `--df-orange`.
 */
.df-form-wrapper {
    --df-orange: #f28c00;
    max-width: 700px;
    margin: 2rem auto;
    /* semi transparent overlay to lift the form off the page */
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 2rem;
    font-family: sans-serif;
    color: #ffffff;
}

.df-form {
    margin: 0;
}

.df-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}
.df-step.active {
    display: block;
}

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

/* Titles for each step.  White text to contrast the dark overlay. */
.df-step-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.df-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Each selectable option uses a translucent card with rounded corners.  When
 * hovered or selected the card is tinted with the site orange. */
.df-option {
    position: relative;
    flex: 1 1 calc(50% - 1rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-height: 140px;
    text-align: center;
}

/* Option hover and selected states.  We apply a subtle orange tint. */
.df-option:hover {
    background: rgba(242, 140, 0, 0.2);
    border-color: var(--df-orange);
}
.df-option.selected {
    border-color: var(--df-orange);
    background: rgba(242, 140, 0, 0.3);
}

.df-option input {
    display: none;
}

/* Icon container.  Icons are provided as images, so we explicitly size
 * the <img> elements.  We drop the colour definition because the
 * images already reflect the orange brand colour. */
.df-icon {
    display: block;
    margin-bottom: 0.75rem;
}
.df-icon img {
    width: 52px;
    height: 52px;
}

/* Labels accompanying icons.  Use white to stand out against the dark
 * background. */
.df-label {
    font-size: 1rem;
    color: #ffffff;
}

/* Contact fields: style text and textarea inputs within the last step. */
.df-contact-fields input,
.df-contact-fields textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    font-size: 1rem;
    color: #ffffff;
    transition: border-color 0.2s ease-in-out, background 0.2s;
}
.df-contact-fields input::placeholder,
.df-contact-fields textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.df-contact-fields input:focus,
.df-contact-fields textarea:focus {
    border-color: var(--df-orange);
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}
.df-contact-fields textarea {
    min-height: 120px;
    resize: vertical;
}

/* Privacy text and checkbox.  White text with a small gap between
 * checkbox and label; the link inherits white and is underlined on
 * hover. */
.df-privacy {
    font-size: 0.9rem;
    color: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
    line-height: 1.4;
}
.df-privacy input {
    margin-top: 3px;
	width:10%;
}
.df-privacy a {
    color: #ffffff;
    text-decoration: underline;
}

.df-navigation-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.df-navigation-buttons button,
.df-submit-button {
    background: var(--df-orange);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.df-navigation-buttons button:hover,
.df-submit-button:hover {
    background: #e07e00;
}

.df-thank-you {
    padding: 2rem;
    background: #f9fff3;
    border: 2px solid #e7f5d4;
    border-radius: 8px;
    text-align: center;
	color: black;
}

@media (max-width: 600px) {
    .df-option {
        flex: 1 1 100%;
    }
    .df-form-wrapper {
        padding: 1rem;
    }
}