/* =========================
   Excel Form Styles
   ========================= */
.excel-form-container {
    max-width: 1000px;
    margin: 0 auto;
}

.excel-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.excel-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.excel-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.excel-form-section-title {
    color: #2c5530;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4A8FD2;
}

.excel-form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.excel-form-fullwidth {
    grid-column: 1 / -1;
}

.excel-form-group {
    margin-bottom: 20px;
}

.excel-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.excel-form-label.required::after {
    content: " *";
    color: #e74c3c;
}

.excel-form-input,
.excel-form-select,
.excel-form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.excel-form-input:focus,
.excel-form-select:focus,
.excel-form-textarea:focus {
    outline: none;
    border-color: #4A8FD2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.excel-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.excel-form-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.excel-form-error {
    color: #e74c3c;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
}

.excel-form-input.error,
.excel-form-select.error,
.excel-form-textarea.error {
    border-color: #e74c3c;
}

/* Loading and Success States */
.excel-form-loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.excel-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4A8FD2;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: excel-spin 1s linear infinite;
    margin: 0 auto 15px;
}

.excel-success-message {
    display: none;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.excel-success-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.excel-countdown {
    margin-top: 20px;
    padding: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    display: inline-block;
}

@keyframes excel-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .excel-form-grid-2col {
        grid-template-columns: 1fr;
    }
    
    .excel-form {
        padding: 20px;
    }
}