/* DAN Open Call Form Styles */

.dan-wrap {
    max-width: 780px;
    margin: 0 auto;
    font-family: inherit;
}

.dan-title {
    margin-bottom: 1.2rem;
}

/* Notices */
.dan-notice {
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.dan-closed { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.dan-info   { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.dan-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.dan-error  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; margin-top: 8px; font-size: 0.9rem; }

/* Fieldsets */
.dan-fieldset {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px 24px 24px;
    margin-bottom: 24px;
    background: #fafafa;
}
.dan-fieldset legend {
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0 8px;
    color: #333;
}

/* Layout */
.dan-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 540px) { .dan-row { grid-template-columns: 1fr; } }

/* Labels & Inputs */
.dan-fieldset label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 14px;
}
.dan-fieldset label input,
.dan-fieldset label textarea,
.dan-fieldset label select {
    margin-top: 5px;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.dan-fieldset label input:focus,
.dan-fieldset label textarea:focus,
.dan-fieldset label select:focus {
    border-color: #4a90d9;
    outline: 2px solid rgba(74,144,217,0.25);
}

/* Word count */
.dan-wordcount { margin-top: 4px; font-size: 0.8rem; color: #777; font-weight: 400; }
.dan-wordcount.over { color: #c00; }

/* Hint & small print */
.dan-hint       { font-size: 0.8rem; color: #888; font-weight: 400; margin-left: 4px; }
.dan-small-print { font-size: 0.82rem; color: #666; margin-top: 8px; }
.dan-center      { text-align: center; }

/* Requirement star */
.req { color: #c00; }

/* Radio group */
.dan-radio-group { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.dan-radio {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600 !important;
    padding: 10px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s, background 0.2s;
}
.dan-radio:has(input:checked) { border-color: #4a90d9; background: #eef5fd; }
.dan-radio input { margin: 0; accent-color: #4a90d9; }

/* GDPR checkbox */
.dan-checkbox-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 0.9rem !important;
}
.dan-checkbox-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: #4a90d9; width: 16px; height: 16px; }

/* File input */
.dan-file-input { cursor: pointer; }
.dan-preview { margin-top: 8px; }
.dan-preview img { max-width: 200px; max-height: 160px; border-radius: 6px; border: 1px solid #ddd; }

/* Card element */
#dan-card-element {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    margin-top: 8px;
}
#dan-card-errors { min-height: 20px; }

/* Submit button */
.dan-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #2c5f8a;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    margin-bottom: 12px;
}
.dan-btn:hover  { background: #1e4468; }
.dan-btn:disabled { opacity: 0.6; cursor: not-allowed; }
