/* DT Angebot Plugin Styles */
:root {
    --dt-primary-color: #fa9f11;
    --dt-primary-dark: #d8860d;
    --dt-primary-light: #fbb347;
    --dt-secondary-color: #2c3e50;
    --dt-text-color: #333;
    --dt-border-color: #e1e5e9;
    --dt-success-color: #28a745;
    --dt-error-color: #dc3545;
    --dt-shadow: 0 4px 15px rgba(0,0,0,0.1);
    --dt-shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
}

.dt-angebot-form-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--dt-shadow);
    position: relative;
    overflow: hidden;
}

.dt-angebot-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--dt-primary-color), var(--dt-primary-light));
}

.dt-angebot-form h2 {
    text-align: center;
    color: var(--dt-secondary-color);
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
}

.dt-angebot-form h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--dt-primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

/* Step Indicator */
.dt-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    position: relative;
}

.dt-step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--dt-border-color);
    z-index: 1;
}

.dt-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 200px;
}

.dt-step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dt-border-color);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.dt-step.active .dt-step-circle {
    background: var(--dt-primary-color);
    color: white;
    transform: scale(1.1);
}

.dt-step.completed .dt-step-circle {
    background: var(--dt-success-color);
    color: white;
}

.dt-step-title {
    font-weight: 600;
    color: var(--dt-secondary-color);
    text-align: center;
    font-size: 0.95rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.dt-step.active .dt-step-title,
.dt-step.completed .dt-step-title {
    opacity: 1;
}

/* Step Content */
.dt-step-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.dt-step-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Selection Styles */
.dt-services-section {
    margin-bottom: 30px;
}

.dt-services-title {
    font-size: 1.5rem;
    color: var(--dt-secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.dt-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.dt-service-card {
    background: #fff;
    border: 2px solid var(--dt-border-color);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dt-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(250, 159, 17, 0.1), transparent);
    transition: left 0.5s ease;
}

.dt-service-card:hover::before {
    left: 100%;
}

.dt-service-card:hover {
    border-color: var(--dt-primary-color);
    transform: translateY(-5px);
    box-shadow: var(--dt-shadow-hover);
}

.dt-service-card.active {
    border-color: var(--dt-primary-color);
    background: linear-gradient(135deg, var(--dt-primary-color), var(--dt-primary-light));
    color: white;
    transform: scale(1.02);
}

.dt-service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--dt-primary-color);
    transition: all 0.3s ease;
}

.dt-service-card.active .dt-service-icon {
    color: white;
    transform: scale(1.1);
}

.dt-service-name {
    font-size: 1.2rem !important;
    font-weight: 600;
    margin: 0;
    transition: color 0.3s ease;
}

/* Sub Services */
.dt-sub-services {
    display: none;
    animation: slideDown 0.4s ease;
    margin-top: 20px;
}

.dt-sub-services.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dt-sub-services-title {
    font-size: 1.3rem;
    color: var(--dt-secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.dt-sub-services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.dt-sub-service-item {
    padding: 12px 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.dt-sub-service-item:hover {
    background: var(--dt-primary-light);
    color: white;
    transform: translateY(-2px);
}

.dt-sub-service-item.active {
    background: var(--dt-primary-color);
    color: white;
    border-color: var(--dt-primary-dark);
}

/* Form Fields */
.dt-form-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--dt-border-color);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.dt-form-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.dt-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.dt-form-group {
    position: relative;
}

.dt-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dt-secondary-color);
    font-size: 1rem;
}

.dt-form-label.required::after {
    content: ' *';
    color: var(--dt-error-color);
    font-weight: bold;
}

.dt-form-input,
.dt-form-textarea,
.dt-form-file {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--dt-border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.dt-form-input:focus,
.dt-form-textarea:focus,
.dt-form-file:focus {
    outline: none;
    border-color: var(--dt-primary-color);
    box-shadow: 0 0 0 3px rgba(250, 159, 17, 0.1);
}

.dt-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.dt-form-file {
    padding: 12px;
    background: #f8f9fa;
}

/* Submit Button */
.dt-submit-section {
    text-align: center;
    margin-top: 40px;
}

.dt-navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 20px;
}

.dt-nav-btn {
    background: var(--dt-secondary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.dt-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.dt-nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dt-nav-btn.primary {
    background: linear-gradient(135deg, var(--dt-primary-color), var(--dt-primary-light));
}

.dt-nav-btn.primary:hover {
    box-shadow: 0 5px 15px rgba(250, 159, 17, 0.3);
}

.dt-submit-btn {
    background: linear-gradient(135deg, var(--dt-primary-color), var(--dt-primary-light));
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.dt-submit-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 ease;
}

.dt-submit-btn:hover::before {
    left: 100%;
}

.dt-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(250, 159, 17, 0.4);
}

.dt-submit-btn:active {
    transform: translateY(-1px);
}

.dt-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading State */
.dt-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.dt-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 500;
    text-align: center;
}

.dt-message.success {
    background: #d4edda;
    color: var(--dt-success-color);
    border: 1px solid #c3e6cb;
}

.dt-message.error {
    background: #f8d7da;
    color: var(--dt-error-color);
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dt-angebot-form-container {
        max-width: 95%;
        padding: 30px;
    }
    
    .dt-services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .dt-angebot-form-container {
        margin: 20px;
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .dt-angebot-form h2 {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .dt-step-indicator {
        margin: 30px 0;
    }
    
    .dt-step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .dt-step-title {
        font-size: 0.85rem;
    }
    
    .dt-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dt-service-card {
        padding: 25px 15px;
        min-height: 120px;
    }
    
    .dt-service-icon {
        font-size: 2.5rem;
    }
    
    .dt-service-name {
        font-size: 1.1rem;
    }
    
    .dt-sub-services-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .dt-form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dt-navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .dt-nav-btn {
        width: 100%;
        padding: 18px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .dt-angebot-form-container {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .dt-angebot-form h2 {
        font-size: 1.8rem;
    }
    
    .dt-step {
        max-width: 120px;
    }
    
    .dt-step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .dt-step-title {
        font-size: 0.8rem;
    }
    
    .dt-service-icon {
        font-size: 2.2rem;
    }
    
    .dt-service-name {
        font-size: 1rem;
    }
    
    .dt-service-card {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .dt-sub-service-item {
        padding: 15px;
        font-size: 0.95rem;
    }
}
