/* DT Connect Form Styles */
.dt-form-ui {
    max-width: 900px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    padding: 20px;
}

.dt-form-ui h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-weight: 600;
    font-size: 1.5rem;
}

/* Progress Bar */
.dt-progress-wrap {
    margin-bottom: 30px;
}

.dt-progress {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.dt-progress div {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.dt-progress div.active {
    background: #ff7a31;
}

.dt-step-labels {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.dt-step-labels .label {
    flex: 1;
    font-size: 12px;
    color: #999;
    text-align: center;
    transition: color 0.3s ease;
}

.dt-step-labels .label.active {
    color: #333;
    font-weight: 600;
}

/* Steps */
.step {
    display: none;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.step.active-step {
    display: block;
    opacity: 1;
    transform: none;
}

/* Form Elements */
.dt-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.dt-input:focus {
    outline: none;
    border-color: #ff7a31;
    box-shadow: 0 0 0 3px rgba(255, 122, 49, 0.1);
}

.dt-input:disabled {
    background-color: #f9f9f9;
    cursor: not-allowed;
    opacity: 0.7;
}

textarea.dt-input {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

/* Field Errors */
.field-error {
    color: #e53935;
    font-size: 14px;
    min-height: 20px;
    margin-top: 6px;
    padding-left: 4px;
}

/* Buttons */
.step-controls {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

.step-controls button {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.step-controls .next {
    background: #ff7a31;
    color: white;
}

.step-controls .next:hover {
    background: #ff6921;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 49, 0.3);
}

.step-controls .prev {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.step-controls .prev:hover {
    background: #f9f9f9;
    border-color: #ff7a31;
    color: #ff7a31;
}

#dt-submit {
    background: #4CAF50;
    color: white;
}

#dt-submit:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Review Table */
.review-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.review-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.review-table th,
.review-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.review-table th {
    font-weight: 600;
    color: #555;
    width: 30%;
    background-color: #fafafa;
}

.review-table tr:last-child th,
.review-table tr:last-child td {
    border-bottom: none;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message h2 {
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-message p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Loader */
#dt-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
}

#dt-loader[aria-hidden="false"] {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #ff7a31;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#dt-loader p {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dt-form-ui {
        padding: 15px;
    }
    
    .step {
        padding: 20px;
    }
    
    .dt-step-labels {
        display: none;
    }
    
    .step-controls {
        flex-direction: column;
    }
    
    .step-controls button {
        width: 100%;
    }
    
    .review-table th,
    .review-table td {
        padding: 10px;
        font-size: 14px;
    }
    
    .dt-progress {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .dt-form-ui h3 {
        font-size: 1.3rem;
    }
    
    .dt-input {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .step {
        padding: 15px;
    }
}

/* Error State */
.dt-input.error {
    border-color: #e53935;
}

/* Placeholder Styling */
.dt-input::placeholder {
    color: #999;
    opacity: 1;
}