/* ================================================
   SUBMISSION FORM STYLES
   ================================================ */

.halal-submit-form-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.halal-submit-form {
    position: relative;
}

/* Sections */
.hsf-section {
    background: white;
    border-radius: 12px;
    padding: 28px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #eef2f0;
}

.hsf-section h3 {
    font-size: 18px;
    color: #1e7f4f;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f4f2;
}

.hsf-optional {
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

.hsf-help {
    color: #777;
    font-size: 14px;
    margin: -10px 0 18px 0;
}

/* Fields */
.hsf-field {
    margin-bottom: 18px;
}

.hsf-field:last-child {
    margin-bottom: 0;
}

.hsf-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.hsf-field .required {
    color: #d63638;
}

.hsf-field input[type="text"],
.hsf-field input[type="email"],
.hsf-field input[type="tel"],
.hsf-field input[type="url"],
.hsf-field select,
.hsf-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #dde2df;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #fafbfa;
    margin: 0;
}

.hsf-field input:focus,
.hsf-field select:focus,
.hsf-field textarea:focus {
    outline: none;
    border-color: #1e7f4f;
    background: white;
    box-shadow: 0 0 0 3px rgba(30,127,79,0.1);
}

.hsf-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Row layout (2 columns) */
.hsf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Checkbox */
.hsf-checkbox-field {
    margin-bottom: 12px;
}

.hsf-checkbox-field label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.4;
}

.hsf-checkbox-field input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #1e7f4f;
    flex-shrink: 0;
}

/* Map */
.hsf-map {
    height: 300px;
    border-radius: 10px;
    border: 2px solid #eef2f0;
    margin-bottom: 16px;
    z-index: 1;
}

/* Submit area */
.hsf-submit-wrap {
    text-align: center;
    padding: 30px 0 10px;
}

.hsf-submit-btn {
    background: linear-gradient(135deg, #1e7f4f 0%, #27a05f 100%) !important;
    color: white !important;
    border: none !important;
    padding: 16px 40px !important;
    font-size: 17px !important;
    font-weight: 700;
    border-radius: 10px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30,127,79,0.3);
}

.hsf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,127,79,0.4);
}

.hsf-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.hsf-submit-note {
    color: #999;
    font-size: 13px;
    margin-top: 12px;
}

/* Status messages */
.hsf-status {
    margin-top: 20px;
}

.hsf-success {
    background: #edf7ed;
    color: #1e4620;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid #c6e7c8;
    font-size: 15px;
}

.hsf-error {
    background: #fbeaea;
    color: #8c1c13;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid #f0c6c3;
    font-size: 15px;
}

.hsf-info {
    background: #e8f4fd;
    color: #104e8b;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid #bee3f8;
    font-size: 15px;
}

/* Claim search results */
.hsf-search-results {
    background: white;
    border: 1px solid #dde2df;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hsf-search-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.hsf-search-item:last-child {
    border-bottom: none;
}

.hsf-search-item:hover {
    background: #f0f8f4;
}

.hsf-search-item strong {
    display: block;
    color: #1e7f4f;
    font-size: 14px;
}

.hsf-search-item span {
    font-size: 12px;
    color: #888;
}

.hsf-search-empty {
    padding: 14px 16px;
    color: #777;
    font-size: 14px;
}

.hsf-search-empty a {
    color: #1e7f4f;
    font-weight: 600;
}

/* ================================================
   SUBMISSION PAGE HERO
   ================================================ */
.submit-page-hero {
    background: linear-gradient(135deg, #0d5c38 0%, #1e7f4f 50%, #27a05f 100%);
    padding: 50px 20px;
    text-align: center;
    margin: -40px -20px 40px -20px;
    border-radius: 0 0 20px 20px;
}

.submit-page-hero h1 {
    color: white !important;
    font-size: 2rem;
    margin-bottom: 8px;
    border: none !important;
    padding: 0 !important;
}

.submit-page-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin: 0;
}

/* Tab navigation for submit pages */
.submit-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.submit-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: white;
    border: 2px solid #eef2f0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: #555;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.submit-tab:hover {
    border-color: #1e7f4f;
    color: #1e7f4f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,127,79,0.1);
}

.submit-tab.active {
    background: #1e7f4f;
    border-color: #1e7f4f;
    color: white;
}

.submit-tab-icon {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .hsf-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hsf-section {
        padding: 20px;
    }

    .submit-page-hero {
        padding: 35px 15px;
        margin: -20px -15px 25px -15px;
    }

    .submit-page-hero h1 {
        font-size: 1.5rem;
    }

    .submit-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .hsf-map {
        height: 220px;
    }
}
