/* Base form styling */
.dha-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.dha-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* Notice box styling */
.notice-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.boarding-notice {
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

.boarding-notice strong {
    display: block;
    margin-bottom: 5px;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.dha-submit-btn,
.dha-cancel-btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dha-submit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
}

.dha-submit-btn:hover {
    background-color: #45a049;
}

.dha-cancel-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.dha-cancel-btn:hover {
    background-color: #e2e6ea;
}

/* Message container */
.dha-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.dha-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.dha-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading state */
.dha-form-loading {
    position: relative;
    pointer-events: none;
}

.dha-form-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000020;
}

.dha-form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000020;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .dha-form {
        padding: 15px;
        margin: 10px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .dha-submit-btn,
    .dha-cancel-btn {
        width: 100%;
        padding: 12px;
    }
}