.icons { margin-right: 5px; }

.work-request-form-page {
    max-width: 980px !important;
    padding-top: 34px;
}

.work-request-form-page .work-request-hero > div:first-child {
    min-width: 0;
}

.work-request-summary strong {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.work-request-summary i {
    color: #35201B;
    font-size: 1.6rem;
}

.work-request-guidelines-summary {
    color: inherit;
    text-decoration: none !important;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.work-request-guidelines-summary:hover {
    background: #f8fafc;
    color: inherit;
    transform: translateY(-1px);
}

.work-request-guidelines-summary:hover span {
    color: #111827;
}

.hoa-form-page {
    max-width: 1250px !important;
    margin-top: 0 !important;
    margin-bottom: 3rem !important;
    padding-top: 34px;
}

.hoa-form-page.narrow {
    max-width: 980px !important;
}

.form-hero {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 24px 0 18px;
    padding: 1.5rem;
}

.hoa-form-page > .form-hero {
    margin-left: 0;
    margin-right: 0;
}

.form-eyebrow {
    color: #35201B;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.form-hero h3 {
    color: #111827;
    font-size: 2rem;
    font-weight: 850;
    line-height: 1.1;
    margin: 0 0 8px;
}

.form-hero p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
    max-width: 620px;
}

/* Professional UI Overhaul */
.box { 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    border: 1px solid #edf2f7; 
    padding: 2rem !important; 
    background: #fff;
}

.work-request-card {
    margin-bottom: 3rem;
}

.hoa-form-card {
    margin-bottom: 3rem;
}

.form-error-banner {
    align-items: center;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 10px;
    color: #c53030;
    display: flex;
    font-weight: 700;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
}

.form-confirm-page {
    max-width: 980px !important;
    padding-top: 34px;
}

.form-success-banner {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    text-align: center;
}

.form-success-banner h2,
.form-success-banner h3 {
    color: #22543d;
    font-weight: 850;
    margin: 0;
}

.form-success-banner p {
    color: #276749;
    font-weight: 650;
    margin: 0.6rem 0 0;
}

.form-summary-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.5rem;
}

.form-summary-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.data-label {
    color: #94a3b8;
    display: block;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.data-value {
    color: #2d3748;
    font-size: 1.02rem;
    font-weight: 650;
}

.details-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    line-height: 1.6;
    padding: 1rem;
}

.documents-grid,
.thumbnail-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    margin-top: 15px;
}

.thumbnail-item {
    aspect-ratio: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.thumbnail-item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.pdf-thumb {
    align-items: center;
    color: #e53e3e;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    padding: 10px;
    text-align: center;
}

.pdf-thumb i {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.pdf-thumb span {
    color: #4a5568;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.form-return-row {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.form-section-title {
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #35201B;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section-spacer {
    margin-top: 20px;
}

.form-row,
.supporting-row {
    align-items: start;
}

.form-group {
    min-width: 0;
}

.wr-field {
    display: grid;
    gap: 6px;
}

.wr-field > span {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.field-hint {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.45;
    margin-top: 7px;
}

.wr-field input.field-invalid {
    background: #fff7ed !important;
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
}

.form-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
        
.form-label {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 3px;
    margin-left: 2px;
}
        
input[type="text"], input[type="email"], input[type="tel"], select, textarea { 
    border-radius: 8px !important; 
    border: 1.5px solid #e2e8f0 !important; 
    transition: all 0.15s ease; 
    background: #f8fafc !important;
    padding: 12px 15px !important;
}

input:focus, select:focus, textarea:focus { 
    border-color: #35201B !important; 
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.15) !important; 
    background: #fff !important;
    outline: none;
}
        
.char-counter {
    font-size: 0.82rem;
    color: #35201B;
    margin-top: 6px;
    margin-right: 2px;
    text-align: right;
    font-weight: 600;
}
        
/* Upload Area */
.upload-zone {
    background: #fdfdfd; 
    padding: 30px; 
    border: 2px dashed #cbd5e0; 
    border-radius: 10px; 
    text-align: center;
    transition: 0.15s;
}

.upload-zone:hover {
    border-color: #35201B;
    background: #f7fafc;
}
        
.custom-upload { 
    background: #2f855a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer; 
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.custom-upload i,
.button.repost i,
.button.cancel i {
    margin-right: 7px;
}

.custom-upload:hover {
    background: #276749;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.upload {
    display: none;
}

/* Agreement Box */
.agreement-box { 
    align-items: flex-start;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbe3ed;
    border-left: 5px solid #35201B;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    display: grid;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: 18px;
    padding: 18px 20px;
}

.agreement-check {
    align-items: flex-start;
    display: flex;
    padding-top: 3px;
}

.agreement-box input {
    appearance: none;
    -webkit-appearance: none;
    align-items: center;
    background: #ffffff;
    border: 2px solid #94a3b8;
    border-radius: 7px;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.14);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 30px;
    justify-content: center;
    margin: 0;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
    width: 30px;
}

.agreement-box input::after {
    color: #ffffff;
    content: "\2713";
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.agreement-box input:checked {
    background: #35201B;
    border-color: #35201B;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.18);
}

.agreement-box input:checked::after {
    opacity: 1;
    transform: scale(1);
}

.agreement-box input:focus-visible {
    outline: 3px solid rgba(49, 130, 206, 0.28);
    outline-offset: 3px;
}

.agreement-copy {
    color: #334155;
    cursor: pointer;
    display: grid;
    gap: 8px;
    line-height: 1.55;
    margin: 0;
}

.agreement-heading {
    align-items: center;
    color: #0f172a;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.98rem;
    font-weight: 850;
    gap: 10px;
    justify-content: space-between;
}

.agreement-heading span {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.agreement-heading i {
    color: #35201B;
}

.agreement-heading strong {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    text-transform: uppercase;
}

.agreement-text {
    color: #475569;
    display: block;
    font-size: 0.92rem;
    font-weight: 550;
    line-height: 1.6;
}
        
/* Header Link */
.form-guidelines-link { 
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px; 
    background: #fff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.8rem;
    transition: 0.3s;
}

.form-guidelines-link:hover {
    background: #2b6cb0;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.2);
}
        
.button.repost { 
    background: #3182ce !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    transition: 0.3s !important;
}

.form-actions-row {
    margin-top: 30px;
}

.submit-requirements {
    background: #f8fafc;
    border: 1px solid #dbe3ed;
    border-radius: 8px;
    margin: 0 auto 18px;
    max-width: 720px;
    padding: 16px 18px;
}

.submit-requirements-title {
    align-items: center;
    color: #0f172a;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 850;
    gap: 8px;
    margin-bottom: 10px;
}

.submit-requirements-title i {
    color: #35201B;
}

.submit-requirements ul {
    display: grid;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.submit-requirements li {
    align-items: center;
    color: #64748b;
    display: flex;
    font-size: 0.92rem;
    font-weight: 650;
    gap: 8px;
    line-height: 1.35;
}

.submit-requirements li i {
    color: #cbd5e1;
    flex: 0 0 auto;
    font-size: 0.82rem;
}

.submit-requirements li.is-complete {
    color: #166534;
}

.submit-requirements li.is-complete i {
    color: #16a34a;
}

.submit-requirements li.is-missing {
    color: #64748b;
}

.form-button-row {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.form-button-row .button {
    min-width: 150px;
}

.button.cancel {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
    -moz-transition: background color 0.2s ease-in-out, color 0.2s ease-in-out;
    -webkit-transition: background color 0.2s ease-in-out, color 0.2s ease-in-out;
    -ms-transition: background color 0.2s ease-in-out, color 0.2s ease-in-out;
    border: 0;
    cursor: pointer;
    display: inline-block;
    background: red !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    transition: 0.3s !important;
    height: 2.7em;
    font-size: 14.7px;
    line-height: 2.7em;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
}

.button.repost:disabled {
    background: #edf2f7 !important;
    color: #a0aec0 !important;
    border: 1px solid #e2e8f0 !important;
    cursor: not-allowed;
}

/* Image Gallery & Thumbnail Styles */
.image-gallery { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.thumb-wrapper { 
    position: relative; width: 110px; height: 110px; 
    border-radius: 10px; overflow: hidden; border: 2px solid #edf2f7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: 0.3s;
}
.thumb-wrapper:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.thumb-wrapper img { width: 100%; height: 100%; object-fit: cover; }
    
.thumb-del-btn,
.thumb-wrapper .del {
    position: absolute; top: 5px; right: 5px; background: rgba(229, 62, 62, 0.9);
    color: white; border: none; border-radius: 50%; width: 24px; height: 24px;
    font-size: 12px; cursor: pointer; display: flex; align-items: center; 
    justify-content: center; transition: 0.2s; z-index: 10;
    line-height: 1; padding: 0;
}
.thumb-del-btn:hover,
.thumb-wrapper .del:hover { background: #c53030; transform: scale(1.1); }
    
/* Disabled state for upload button */
.custom-upload.disabled { 
    background: #cbd5e0 !important; cursor: not-allowed !important; 
    opacity: 0.6; pointer-events: none; 
}
    
.upload-limit-msg { 
    font-size: 0.85rem; font-weight: 700; color: #e53e3e; 
    margin-top: 10px; display: none; 
}

.upload-counter {
    color: #718096;
    font-size: 0.82rem;
    font-weight: 650;
    margin: 15px 0 0;
}

@media (max-width: 760px) {
    .work-request-form-page {
        padding-top: 16px;
    }

    .work-request-form-page .work-request-hero > div:first-child {
        width: 100%;
    }

    .form-hero {
        align-items: stretch;
        flex-direction: column;
        margin-top: 12px;
        padding: 1.15rem;
    }

    .form-hero h3 {
        font-size: 1.55rem;
    }

    .form-guidelines-link {
        justify-content: center;
        width: 100%;
    }

    .hoa-form-page {
        padding-top: 16px;
    }

    .box {
        padding: 1.15rem !important;
    }

    .upload-zone {
        padding: 22px 14px;
    }

    .submit-requirements {
        padding: 14px;
    }

    .actions.special {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .actions.special li,
    .actions.special .button,
    .form-button-row .button {
        width: 100%;
    }

    .form-button-row {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .form-confirm-page {
        padding-top: 16px;
    }

    .form-summary-grid,
    .form-summary-grid.three {
        grid-template-columns: 1fr;
    }
}

/* --- Empty State Card Styling --- */
.empty-state-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e4e6eb;
  padding: 60px 20px;
  text-align: center;
  max-width: 500px;
  margin: 40px auto;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.empty-card-icon {
  font-size: 3.5rem;
  color: #e4e6eb;
  margin-bottom: 40px;
}

.empty-state-card h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.empty-state-card .main-msg {
  color: #65676b;
  font-size: 1.5rem;
  margin-bottom: 1px;
}
