/**
 * Destiny Insight 前端样式
 * 黑金配色主题
 */

.destiny-insight-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.destiny-insight-form-wrapper {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.destiny-insight-form-header {
    text-align: center;
    margin-bottom: 30px;
    color: #d4af37;
}

.destiny-insight-form-header h2 {
    font-size: 32px;
    margin: 0 0 10px 0;
    color: #d4af37;
    font-weight: bold;
}

.destiny-insight-form-header p {
    font-size: 16px;
    color: #c0c0c0;
    margin: 0;
}

.destiny-insight-form {
    color: #ffffff;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #d4af37;
}

.form-group .required {
    color: #ff6b6b;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="time"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #3a3a3a;
    border-radius: 10px;
    background: #2a2a2a;
    color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder {
    color: #6a6a6a;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #888;
}

.destiny-insight-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.destiny-insight-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.destiny-insight-submit-btn:active {
    transform: translateY(0);
}

.destiny-insight-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #1a1a1a;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #f44336;
    color: #f44336;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.form-footer small {
    color: #888;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .destiny-insight-form-wrapper {
        padding: 30px 20px;
    }
    
    .destiny-insight-form-header h2 {
        font-size: 24px;
    }
    
    .destiny-insight-form-header p {
        font-size: 14px;
    }
}

/* 日期和时间选择器样式优化 */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}
