/* KFZ Gutachter Contact Form Styles */
:root {
    --kgf-primary: #E6C908;
    --kgf-primary-dark: #C4A906;
    --kgf-secondary: #1e40af;
    --kgf-accent: #f59e0b;
    --kgf-success: #10b981;
    --kgf-danger: #ef4444;
    --kgf-warning: #f59e0b;
    --kgf-text: #1f2937;
    --kgf-text-light: #6b7280;
    --kgf-text-muted: #9ca3af;
    --kgf-bg-primary: #ffffff;
    --kgf-bg-secondary: #f8fafc;
    --kgf-bg-muted: #f1f5f9;
    --kgf-border: #e5e7eb;
    --kgf-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --kgf-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

#kgf-container, .kgf-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--kgf-bg-secondary) 0%, var(--kgf-bg-primary) 100%);
    min-height: 600px;
    border-radius: 24px;
    box-shadow: var(--kgf-shadow);
    position: relative;
    overflow: hidden;
}

#kgf-container::before, .kgf-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--kgf-primary) 0%, var(--kgf-accent) 50%, var(--kgf-primary) 100%);
}

/* Loading Spinner mit Auto-Icon */
.kgf-spinner {
    display: inline-block;
    font-size: 40px;
    color: var(--kgf-primary);
    animation: kgf-pulse 1.5s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes kgf-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

@keyframes kgf-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress Bar */
.kgf-progress-container {
    margin-bottom: 50px;
    animation: kgf-fadeIn 0.6s ease-out;
}

.kgf-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--kgf-text-light);
    font-weight: 500;
}

.kgf-progress-text {
    font-weight: 600;
    color: var(--kgf-primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kgf-progress-text i {
    font-size: 18px;
}

.kgf-progress-motivation {
    font-size: 13px;
    color: var(--kgf-text-muted);
    font-style: italic;
}

.kgf-progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--kgf-bg-muted);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kgf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--kgf-primary) 0%, var(--kgf-primary-dark) 100%);
    border-radius: 5px;
    transition: width 0.7s ease-out;
    position: relative;
}

.kgf-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: kgf-shimmer 2s infinite;
}

@keyframes kgf-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Question Container */
.kgf-question-container {
    text-align: center;
    animation: kgf-fadeIn 0.6s ease-out;
}

.kgf-question-header {
    margin-bottom: 50px;
}

.kgf-question-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--kgf-text);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kgf-question-header p {
    font-size: 1.35rem;
    color: var(--kgf-text-light);
    margin: 0;
    line-height: 1.4;
}

.kgf-question-header .kgf-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--kgf-accent);
    font-weight: 600;
    margin-top: 15px;
}

.kgf-question-header .kgf-subtitle::before,
.kgf-question-header .kgf-subtitle::after {
    content: '';
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--kgf-accent), transparent);
}

/* Options Container */
.kgf-options-container {
    display: grid;
    gap: 20px;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.kgf-options-container.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.kgf-options-container.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.kgf-option {
    background: var(--kgf-bg-primary);
    border: 2px solid var(--kgf-border);
    border-radius: 16px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
}

.kgf-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--kgf-primary) 0%, var(--kgf-primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kgf-option:hover {
    border-color: var(--kgf-primary);
    transform: translateY(-3px);
    box-shadow: var(--kgf-shadow-hover);
}

.kgf-option:hover::before {
    opacity: 0.05;
}

.kgf-option.selected {
    border-color: var(--kgf-primary);
    background: linear-gradient(135deg, rgba(230, 201, 8, 0.1) 0%, rgba(196, 169, 6, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 201, 8, 0.2);
}

.kgf-option.selected::before {
    opacity: 0.1;
}

.kgf-option-icon {
    font-size: 28px;
    color: var(--kgf-primary);
    margin-bottom: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.kgf-option:hover .kgf-option-icon {
    transform: scale(1.1);
    color: var(--kgf-primary-dark);
}

.kgf-option.selected .kgf-option-icon {
    color: var(--kgf-primary);
    transform: scale(1.05);
}

.kgf-option-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--kgf-text);
    line-height: 1.3;
    position: relative;
    z-index: 2;
    word-break: break-word;
    white-space: normal;
}

.kgf-option-description {
    font-size: 13px;
    color: var(--kgf-text-light);
    line-height: 1.4;
    margin-top: 5px;
    position: relative;
    z-index: 2;
    word-break: break-word;
    white-space: normal;
}

/* Input Fields */
.kgf-input-container {
    max-width: 700px;
    margin: 0 auto 50px;
    animation: kgf-fadeIn 0.6s ease-out;
    padding: 0 20px;
    width: 100%;
}

.kgf-input-group {
    position: relative;
    margin-bottom: 30px;
}

.kgf-input-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--kgf-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    word-wrap: break-word;
}

.kgf-input-label i {
    color: var(--kgf-primary);
    font-size: 18px;
    flex-shrink: 0;
}

.kgf-input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--kgf-border);
    border-radius: 12px;
    font-size: 16px;
    color: var(--kgf-text);
    background: var(--kgf-bg-primary);
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
    min-height: 54px;
}

.kgf-input:focus {
    outline: none;
    border-color: var(--kgf-primary);
    box-shadow: 0 0 0 3px rgba(230, 201, 8, 0.1);
    transform: translateY(-1px);
}

.kgf-input::placeholder {
    color: var(--kgf-text-muted);
}

.kgf-textarea {
    min-height: 120px;
    resize: vertical;
}

.kgf-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding: 26px 55px 26px 20px;
    cursor: pointer;
    min-width: 280px;
    width: 100%;
    height: 74px;
    line-height: 22px;
    vertical-align: middle;
}

/* Navigation Buttons */
.kgf-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.kgf-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.kgf-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.kgf-btn:hover::before {
    left: 100%;
}

.kgf-btn-primary {
    background: linear-gradient(135deg, var(--kgf-primary) 0%, var(--kgf-primary-dark) 100%);
    color: #1f2937;
    box-shadow: 0 4px 15px rgba(230, 201, 8, 0.3);
}

.kgf-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 201, 8, 0.4);
}

.kgf-btn-secondary {
    background: var(--kgf-bg-primary);
    color: var(--kgf-text-light);
    border: 2px solid var(--kgf-border);
}

.kgf-btn-secondary:hover {
    border-color: var(--kgf-primary);
    color: var(--kgf-primary);
    transform: translateY(-1px);
}

.kgf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Success/Error Messages */
.kgf-message {
    padding: 25px;
    border-radius: 16px;
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    animation: kgf-fadeIn 0.6s ease-out;
}

.kgf-message.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 2px solid var(--kgf-success);
    color: #064e3b;
}

.kgf-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 2px solid var(--kgf-danger);
    color: #7f1d1d;
}

.kgf-message i {
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #kgf-container, .kgf-container {
        padding: 20px 15px;
        margin: 10px;
        border-radius: 16px;
    }
    
    .kgf-input-container {
        padding: 0 10px;
        max-width: 100%;
        width: calc(100% - 20px);
    }
    
    .kgf-options-container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    .kgf-question-header h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .kgf-question-header p {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .kgf-options-container.grid-2,
    .kgf-options-container.grid-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .kgf-option {
        padding: 20px 15px;
        min-height: 70px;
    }
    
    .kgf-option-icon {
        font-size: 24px;
    }
    
    .kgf-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .kgf-btn {
        width: 100%;
        justify-content: center;
        padding: 18px 24px;
        font-size: 15px;
    }
    
    .kgf-input {
        padding: 16px 15px;
        font-size: 16px;
    }
    
    .kgf-input-label {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .kgf-select {
        width: 100%;
        min-width: 0;
        padding: 22px 40px 22px 15px; /* less right padding for text */
        background-size: 18px;
        height: 68px;
        line-height: 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    #kgf-container, .kgf-container {
        padding: 15px 10px;
        margin: 5px;
    }
    
    .kgf-input-container {
        padding: 0 5px;
        max-width: 100%;
        width: calc(100% - 10px);
    }
    
    .kgf-options-container {
        padding: 0 5px;
        max-width: 100%;
    }
    
    .kgf-question-header h2 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .kgf-question-header p {
        font-size: 1rem;
    }
    
    .kgf-question-header .kgf-subtitle {
        font-size: 1rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .kgf-question-header .kgf-subtitle::before,
    .kgf-question-header .kgf-subtitle::after {
        display: none;
    }
    
    .kgf-input {
        padding: 14px 12px;
        font-size: 16px;
    }
    
    .kgf-input-label {
        font-size: 14px;
        gap: 6px;
    }
    
    .kgf-input-label i {
        font-size: 16px;
    }
    
    .kgf-btn {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .kgf-option {
        padding: 15px 10px;
        min-height: 70px;
    }
    
    .kgf-option-text {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .kgf-option-description {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .kgf-select {
        width: 100%;
        min-width: 0;
        padding: 18px 36px 18px 12px; /* smaller right padding */
        background-size: 14px;
        height: 60px;
        line-height: 18px;
        font-size: 14px;
    }
}

/* Special styling for automotive theme */
.kgf-automotive-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--kgf-accent) 0%, #f97316 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    white-space: nowrap;
    z-index: 3;
    position: relative;
}

.kgf-trust-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.kgf-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--kgf-text-light);
    font-size: 14px;
    font-weight: 500;
}

.kgf-trust-item i {
    color: var(--kgf-success);
    font-size: 16px;
}

@media (max-width: 600px) {
    .kgf-trust-indicators {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .kgf-trust-item {
        font-size: 13px;
        justify-content: center;
    }
} 