/* Reset and base styles */

.gof-form * {
    
    
    box-sizing: border-box;
}

.gof-form {
    font-family: Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #2c3e50;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Form container */
.gof-multi-step-form {
    padding: 0;
    position: relative;
}

.gof-question-container {
    margin: 0;
}

.gof-question-box {
    background-color: #3b8284;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    color: white;
    position: relative;
}

/* Layout */
.gof-image-column {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.gof-step-image {
    max-width: 100%;
    border-radius: 4px;
}

.gof-content-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*min-height: 300px;*/
    text-align: left;
}

/* Headers */
.gof-step-header {
    margin-bottom: 15px;
    text-align: left;
}

.gof-step-tag {
    display: inline-block;
    margin-bottom: 5px;
    font-style: italic;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gof-form h2 {
    margin: 0 0 25px;
    font-size: 2.8em;
    line-height: 1.2;
    font-weight: bold;
}

.gof-subtitle-note {
    font-style: italic;
    margin-top: 5px;
    color: #fff;
}

/* Form controls */
.gof-input-group input {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    color: white;
    font-size: 1em;
    margin-bottom: 15px;
    text-align: left;
}

.gof-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

.gof-input-group input:focus {
    outline: none;
    border-bottom-color: white;
}

/* Form validation */
.gof-input-group input.gof-validation-failed {
    border-color: #ff4444;
}

.gof-radio-group .gof-radio-label.gof-validation-failed {
    border-color: #ff4444;
}

.gof-error-message {
    color: #ff4444;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Radio buttons */
.gof-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
    width: 100%;
}

.gof-radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1em;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 10px 12px;
    transition: background-color 0.2s;
    position: relative;
}

.gof-radio-label:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.gof-radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* This is the key style that highlights the entire area */
.gof-radio-label:has(input[type="radio"]:checked) {
    background-color: rgba(255, 255, 255, 0.2);
}

.gof-option-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    transition: background-color 0.2s;
}

.gof-option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    color: #3b8284;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.2em;
}

/* Navigation */
.gof-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
}

.gof-footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gof-btn-weiter {
    background-color: white;
    color: #3b8284;
    border: none;
    border-radius: 25px;
    padding: 10px 30px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gof-instruction-text {
    color: white;
    font-size: 1em;
}

.gof-nav-btn-group {
    display: flex;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.gof-nav-btn {
    background-color: white;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #3b8284;
    margin: 0;
    padding: 0;
}

.gof-nav-separator {
    width: 1px;
    background-color: #ccc;
}

/* Welcome screen button */
.gof-button-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 40px;
}

.gof-start-button {
    background-color: white;
    color: #3b8284;
    border: none;
    border-radius: 30px;
    padding: 15px 50px;
    font-size: 1.6em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gof-start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gof-button-subtext {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
}

.gof-time-estimate {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 25px;
    font-size: 0.9em;
    opacity: 0.8;
}

.gof-time-estimate::before {
    content: '⏱';
    font-size: 1.2em;
    margin-right: 2px;
}

/* Progress bar */
.gof-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    overflow: hidden;
}

.gof-progress-bar-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
}

.gof-progress-bar-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width;
    transform-origin: left;
}

/* Debug mode */
.gof-multi-step-form[data-debug="true"] .gof-question-container {
    margin-bottom: 80px;
}

.gof-multi-step-form[data-debug="true"] .gof-question-container:last-child {
    margin-bottom: 0;
}

.gof-step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: white;
    color: #3b8284;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

/* Remove summary step styles */
/* Summary step */
.gof-summary-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.gof-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gof-summary-label {
    font-weight: 500;
    color: var(--color-text-secondary);
}

.gof-summary-value {
    font-weight: 600;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .gof-u-hide-mobile {
        display: none !important;
    }

    .gof-question-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gof-question-box {
        padding: 15px;
    }

    .gof-content-column {
        min-height: auto;
    }

    .gof-image-column {
        order: -1; /* Show image before content on mobile */
    }

    .gof-form h2 {
        font-size: 2em;
        margin: 0 0 20px;
    }

    .gof-step-tag {
        font-size: 0.8em;
    }

    /* Make buttons more touch-friendly */
    .gof-btn-weiter,
    .gof-start-button,
    .gof-nav-btn {
        min-height: 44px; /* Minimum touch target size */
    }

    .gof-start-button {
        font-size: 1.4em;
        padding: 12px 40px;
        width: 100%; /* Full width on mobile */
    }

    /* Fix navigation buttons layout */
    .gof-nav-btn-group {
        display: inline-flex; /* Keep buttons together */
        margin: 0 auto; /* Center the group */
        gap: 40px; /* Add spacing between buttons */
        background: transparent; /* Make the group background transparent */
    }

    .gof-nav-btn {
        width: 44px;
        height: 44px;
        flex: 0 0 44px; /* Prevent expansion */
        border-radius: 4px; /* Add rounded corners to individual buttons */
        background-color: white;
    }

    .gof-nav-separator {
        display: none; /* Hide the separator line on mobile */
    }

    /* Adjust form controls for touch */
    .gof-radio-label {
        padding: 12px;
        margin-bottom: 2px;
    }

    .gof-option-letter {
        width: 28px;
        height: 28px;
        font-size: 1em;
    }

    /* Adjust footer layout */
    .gof-form-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .gof-footer-left {
        flex-direction: column;
        align-items: stretch;
    }

    .gof-footer-right {
        display: flex;
        justify-content: center;
    }

    .gof-btn-weiter {
        width: 100%;
        padding: 12px;
    }

    .gof-instruction-text {
        display: none; /* Hide instruction text on mobile */
    }

    /* Summary items */
    .gof-summary-item {
        padding: 12px;
    }

    .gof-summary-value {
        font-size: 1.1em;
    }

    /* Adjust step number position */
    .gof-step-number {
        top: 15px;
        right: 15px;
        font-size: 0.8em;
        padding: 3px 10px;
    }

}

/* Small mobile devices */
@media (max-width: 480px) {
    .gof-question-box {
        padding: 12px;
    }

    .gof-form h2 {
        font-size: 1.8em;
        margin: 0 0 15px;
    }

    .gof-step-image {
        max-height: 200px;
        object-fit: cover;
    }
}

/* Spam Protection */
.gof-contact-field {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Loading Spinner */
.gof-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 132, 0.3);
    border-radius: 50%;
    border-top-color: #3b8284;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

.gof-nav-btn .gof-loading-spinner {
    width: 16px;
    height: 16px;
    margin: 0;
    border-color: rgba(59, 130, 132, 0.3);
    border-top-color: #3b8284;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Disabled button state */
.gof-btn-weiter:disabled,
.gof-nav-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
} 