/* Haiti Artwork Submissions - Modern, Clean & Polished Styles */

.hta-wrapper {
    /*max-width: 780px;*/
    margin: 30px auto;
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #2d3748;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .hta-wrapper {
        padding: 20px 16px;
        margin: 15px auto;
    }
}

/* Headings */
.hta-wrapper h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #edf2f7;
}

.hta-wrapper h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 12px;
}

/* Progress Bar */
.hta-progress-bar-container {
    margin-bottom: 30px;
}

.hta-progress-bar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    counter-reset: step;
}

.hta-progress-bar li {
    flex: 1;
    text-align: center;
    font-size: 12px;
    padding: 10px 4px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.25s ease;
    user-select: none;
}

.hta-progress-bar li.active {
    background: #0073aa;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.3);
}

.hta-progress-bar li.completed {
    background: #28a745;
    color: #ffffff;
}

/* Form Rows & Inputs */
.hta-form-row {
    margin-bottom: 20px;
}

.hta-form-row label,
.hta-form-row legend {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.hta-form-row input[type="text"],
.hta-form-row input[type="email"],
.hta-form-row input[type="tel"],
.hta-form-row input[type="url"],
.hta-form-row input[type="date"],
.hta-form-row textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    color: #1e293b;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hta-form-row input[type="text"]:focus,
.hta-form-row input[type="email"]:focus,
.hta-form-row input[type="tel"]:focus,
.hta-form-row input[type="url"]:focus,
.hta-form-row input[type="date"]:focus,
.hta-form-row textarea:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

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

/* Checkbox & Radio Fieldset styling */
fieldset.hta-form-row {
    border: 1px solid #e2e8f0;
    padding: 14px 18px;
    border-radius: 8px;
    background: #f8fafc;
}

fieldset.hta-form-row legend {
    padding: 0 8px;
    font-weight: 700;
}

fieldset.hta-form-row label {
    font-weight: normal;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 8px;
}

fieldset.hta-form-row input[type="checkbox"],
fieldset.hta-form-row input[type="radio"] {
    margin: 0;
    accent-color: #0073aa;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Step 3 Artwork Card Styling */
.hta-artwork-row {
    border: 1px solid #e2e8f0 !important;
    background: #ffffff;
    padding: 20px !important;
    margin-bottom: 18px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease;
}

.hta-artwork-row:hover {
    border-color: #cbd5e1 !important;
}

.hta-artwork-row input[type="file"] {
    display: block;
    width: 100%;
    padding: 8px 10px;
    background: #f1f5f9;
    border: 1px dashed #94a3b8;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    cursor: pointer;
}

/* Informational Notes */
.hta-info-note {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    border-left: 4px solid #0284c7 !important;
    padding: 14px 18px !important;
    margin: 20px 0 !important;
    border-radius: 6px !important;
    font-size: 14px;
    color: #0369a1;
}

.hta-info-note p {
    margin: 0;
    line-height: 1.5;
}

.hta-helper-text {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Navigation Buttons */
.hta-step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    gap: 12px;
}

.hta-wrapper button,
.hta-wrapper .button,
.hta-btn-next,
.hta-btn-prev,
#hta-submit-btn,
#hta-add-artwork,
.hta-remove-row,
.hta-vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    outline: none;
    box-sizing: border-box;
}

.hta-btn-next,
#hta-submit-btn {
    background-color: #0073aa;
    color: #ffffff !important;
    border: 1px solid #006292;
    margin-left: auto;
    box-shadow: 0 2px 4px rgba(0, 115, 170, 0.2);
}

.hta-btn-next:hover,
#hta-submit-btn:hover {
    background-color: #005a87;
    border-color: #004d73;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 115, 170, 0.3);
}

.hta-btn-prev {
    background-color: #ffffff;
    color: #475569 !important;
    border: 1px solid #cbd5e1;
}

.hta-btn-prev:hover {
    background-color: #f1f5f9;
    color: #1e293b !important;
    border-color: #94a3b8;
}

#hta-add-artwork {
    background-color: #f0f9ff;
    color: #0284c7 !important;
    border: 1px dashed #0284c7;
    padding: 9px 18px;
    font-size: 14px;
    margin: 10px 0;
}

#hta-add-artwork:hover {
    background-color: #0284c7;
    color: #ffffff !important;
    border-style: solid;
}

.hta-remove-row {
    background: transparent;
    color: #dc2626 !important;
    border: 1px solid #fca5a5;
    padding: 6px 12px;
    font-size: 13px;
    margin-top: 10px;
}

.hta-remove-row:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

.hta-vote-btn {
    background: #ffffff;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
    padding: 7px 14px;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.hta-vote-btn:hover {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48 !important;
}

.hta-vote-btn:disabled,
#hta-submit-btn:disabled,
.hta-btn-next:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hta-heart {
    color: #e11d48;
}
