css
/*
 * WorkSarkari Computer Applications
 * Application Form CSS
 *
 * File:
 * assets/css/application-form.css
 */


/* =========================================================
   RESET / BASE
========================================================= */

.wsco-application-wrapper,
.wsco-application-wrapper * {
    box-sizing: border-box;
}

.wsco-application-wrapper {
    width: 100%;
    max-width: 1050px;
    margin: 30px auto;
    padding: 0 15px;
    color: #1f2937;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}


/* =========================================================
   FORM HEADER
========================================================= */

.wsco-form-header {
    position: relative;
    overflow: hidden;
    padding: 32px 30px;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #111827 0%,
        #1f2937 100%
    );
    color: #ffffff;
    text-align: center;
    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.12);
}

.wsco-form-header::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.wsco-logo-area {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 12px;
}

.wsco-logo {
    font-size: 27px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.wsco-logo-domain {
    margin-left: 2px;
    font-size: 15px;
    font-weight: 700;
    opacity: 0.85;
}

.wsco-form-header h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
}

.wsco-form-header p {
    position: relative;
    z-index: 1;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}


/* =========================================================
   NOTICE
========================================================= */

.wsco-form-notice {
    margin-top: 18px;
    padding: 14px 17px;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    background: #fffbeb;
    color: #78350f;
    font-size: 14px;
    line-height: 1.6;
}

.wsco-form-notice strong {
    font-weight: 700;
}


/* =========================================================
   ERROR
========================================================= */

.wsco-form-errors {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
}

.wsco-form-errors strong {
    display: block;
    margin-bottom: 6px;
}

.wsco-form-errors ul {
    margin: 5px 0 0 20px;
    padding: 0;
}

.wsco-form-errors li {
    margin-bottom: 3px;
}


/* =========================================================
   FORM
========================================================= */

.wsco-application-form {
    margin-top: 20px;
}


/* =========================================================
   SECTION
========================================================= */

.wsco-section {
    margin-bottom: 20px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow:
        0 3px 14px rgba(15, 23, 42, 0.05);
}

.wsco-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #111827;
    font-size: 17px;
    font-weight: 700;
}

.wsco-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    border-radius: 6px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   GRID
========================================================= */

.wsco-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
}

.wsco-field {
    min-width: 0;
}

.wsco-field-full {
    grid-column: 1 / -1;
}


/* =========================================================
   LABELS
========================================================= */

.wsco-field label,
.wsco-upload-box label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 13px;
    font-weight: 650;
}

.wsco-field label span,
.wsco-upload-box label span {
    color: #dc2626;
}


/* =========================================================
   INPUTS
========================================================= */

.wsco-field input[type="text"],
.wsco-field input[type="tel"],
.wsco-field input[type="email"],
.wsco-field input[type="date"],
.wsco-field input[type="number"],
.wsco-field select,
.wsco-field textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    outline: none;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.wsco-field textarea {
    min-height: 105px;
    resize: vertical;
}

.wsco-field input::placeholder,
.wsco-field textarea::placeholder {
    color: #9ca3af;
}

.wsco-field input:hover,
.wsco-field select:hover,
.wsco-field textarea:hover {
    border-color: #9ca3af;
}

.wsco-field input:focus,
.wsco-field select:focus,
.wsco-field textarea:focus {
    border-color: #111827;
    box-shadow:
        0 0 0 3px rgba(17, 24, 39, 0.08);
}


/* =========================================================
   SELECT
========================================================= */

.wsco-field select {
    cursor: pointer;
}


/* =========================================================
   UPLOAD SECTION
========================================================= */

.wsco-upload-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 22px;
}

.wsco-upload-box {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 9px;
    background: #f8fafc;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.wsco-upload-box:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.wsco-upload-box label {
    margin-bottom: 10px;
    font-size: 14px;
}

.wsco-required {
    color: #dc2626;
}

.wsco-file-input {
    padding: 4px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #ffffff;
}

.wsco-file-input input[type="file"] {
    display: block;
    width: 100%;
    padding: 7px;
    color: #374151;
    font-family: inherit;
    font-size: 13px;
}

.wsco-file-input input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 8px 12px;
    border: 0;
    border-radius: 5px;
    background: #111827;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
}

.wsco-upload-box small {
    display: block;
    margin-top: 8px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   DECLARATION
========================================================= */

.wsco-declaration {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    background: #ffffff;
    box-shadow:
        0 3px 14px rgba(15, 23, 42, 0.04);
}

.wsco-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
}

.wsco-checkbox input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #111827;
    cursor: pointer;
}

.wsco-checkbox span {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.65;
}


/* =========================================================
   SUBMIT AREA
========================================================= */

.wsco-submit-area {
    margin-top: 22px;
    padding: 22px;
    border-radius: 10px;
    background: #f8fafc;
    text-align: center;
}

.wsco-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-width: 240px;
    min-height: 50px;
    padding: 12px 22px;
    border: 0;
    border-radius: 7px;
    outline: none;
    background: #111827;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.wsco-submit-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 7px 18px rgba(17, 24, 39, 0.18);
    background: #1f2937;
}

.wsco-submit-button:active {
    transform: translateY(0);
}

.wsco-submit-arrow {
    font-size: 20px;
    line-height: 1;
}

.wsco-submit-note {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 12px;
}


/* =========================================================
   SUCCESS PAGE
========================================================= */

.wsco-success-wrapper {
    width: 100%;
    max-width: 850px;
    margin: 35px auto;
    padding: 0 15px;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}

.wsco-success-card {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.08);
}

.wsco-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 35px auto 18px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #047857;
}

.wsco-success-icon span {
    font-size: 38px;
    font-weight: 700;
}

.wsco-success-card h1 {
    margin: 0;
    padding: 0 20px;
    color: #111827;
    font-size: 27px;
    line-height: 1.3;
}

.wsco-success-message {
    margin: 10px 20px 0;
    color: #6b7280;
    font-size: 14px;
}


/* =========================================================
   APPLICATION ID
========================================================= */

.wsco-application-id-box {
    margin: 25px;
    padding: 20px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #f8fafc;
}

.wsco-id-label {
    display: block;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.wsco-id-value {
    display: block;
    margin-top: 7px;
    color: #111827;
    font-size: 26px;
    letter-spacing: 1px;
}

.wsco-id-note {
    display: block;
    margin-top: 7px;
    color: #6b7280;
    font-size: 11px;
}


/* =========================================================
   SUCCESS DETAILS
========================================================= */

.wsco-success-details {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0 25px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #e5e7eb;
}

.wsco-success-detail {
    padding: 13px;
    background: #ffffff;
    text-align: left;
}

.wsco-success-detail span {
    display: block;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 11px;
}

.wsco-success-detail strong {
    display: block;
    color: #111827;
    font-size: 13px;
    word-break: break-word;
}

.wsco-status-new {
    color: #0369a1 !important;
}


/* =========================================================
   PDF SECTION
========================================================= */

.wsco-pdf-section {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 25px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    text-align: left;
}

.wsco-pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border-radius: 6px;
    background: #111827;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.wsco-pdf-info {
    flex: 1;
}

.wsco-pdf-info strong {
    display: block;
    color: #111827;
    font-size: 14px;
}

.wsco-pdf-info span {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 11px;
}

.wsco-download-button,
.wsco-print-button,
.wsco-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.wsco-download-button {
    background: #111827;
    color: #ffffff;
}

.wsco-download-button:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 5px 15px rgba(17, 24, 39, 0.15);
}

.wsco-pdf-pending {
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   EMAIL NOTICE
========================================================= */

.wsco-email-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 25px 18px;
    padding: 15px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    text-align: left;
}

.wsco-email-icon {
    font-size: 22px;
    line-height: 1;
}

.wsco-email-notice strong {
    font-size: 13px;
}

.wsco-email-notice p {
    margin: 4px 0;
    font-size: 12px;
}


/* =========================================================
   IMPORTANT NOTICE
========================================================= */

.wsco-important-notice {
    margin: 0 25px 20px;
    padding: 14px;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 7px;
    background: #fffbeb;
    color: #78350f;
    text-align: left;
}

.wsco-important-notice strong {
    font-size: 13px;
}

.wsco-important-notice p {
    margin: 4px 0 0;
    font-size: 12px;
}


/* =========================================================
   SUCCESS ACTIONS
========================================================= */

.wsco-success-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 25px 25px;
}

.wsco-home-button {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
}

.wsco-home-button:hover {
    color: #111827;
    transform: translateY(-1px);
}

.wsco-print-button {
    background: #111827;
    color: #ffffff;
}

.wsco-print-button:hover {
    color: #ffffff;
    transform: translateY(-1px);
}


/* =========================================================
   SUCCESS FOOTER
========================================================= */

.wsco-success-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 14px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #6b7280;
    font-size: 11px;
}

.wsco-success-footer strong {
    color: #111827;
}


/* =========================================================
   ERROR CARD
========================================================= */

.wsco-error-card {
    padding: 35px 20px;
}

.wsco-error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    font-size: 30px;
    font-weight: 700;
}

.wsco-error-card p {
    margin: 10px auto 25px;
    max-width: 500px;
    color: #6b7280;
}


/* =========================================================
   LOADING STATE
========================================================= */

.wsco-application-form.is-submitting {
    opacity: 0.65;
    pointer-events: none;
}

.wsco-submit-button.is-loading {
    position: relative;
}

.wsco-submit-button.is-loading::after {
    content: "";
    width: 15px;
    height: 15px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wsco-spin 0.7s linear infinite;
}

@keyframes wsco-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 768px) {

    .wsco-application-wrapper {
        margin-top: 20px;
    }

    .wsco-form-header {
        padding: 25px 18px;
    }

    .wsco-form-header h1 {
        font-size: 23px;
    }

    .wsco-logo {
        font-size: 23px;
    }

    .wsco-grid,
    .wsco-upload-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 17px;
    }

    .wsco-field-full {
        grid-column: auto;
    }

    .wsco-success-details {
        grid-template-columns: 1fr;
    }

    .wsco-pdf-section {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .wsco-download-button {
        width: 100%;
    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 480px) {

    .wsco-application-wrapper {
        margin: 10px auto;
        padding: 0 8px;
    }

    .wsco-form-header {
        padding: 22px 14px;
        border-radius: 8px;
    }

    .wsco-form-header h1 {
        font-size: 20px;
    }

    .wsco-form-header p {
        font-size: 12px;
    }

    .wsco-logo {
        font-size: 21px;
    }

    .wsco-logo-domain {
        font-size: 12px;
    }

    .wsco-form-notice {
        font-size: 12px;
        padding: 12px;
    }

    .wsco-section {
        border-radius: 7px;
    }

    .wsco-section-title {
        padding: 13px;
        font-size: 15px;
    }

    .wsco-section-number {
        min-width: 30px;
        height: 27px;
        font-size: 11px;
    }

    .wsco-grid,
    .wsco-upload-grid {
        padding: 13px;
    }

    .wsco-field input[type="text"],
    .wsco-field input[type="tel"],
    .wsco-field input[type="email"],
    .wsco-field input[type="date"],
    .wsco-field select,
    .wsco-field textarea {
        font-size: 14px;
    }

    .wsco-submit-area {
        padding: 17px 12px;
    }

    .wsco-submit-button {
        width: 100%;
        min-width: 0;
    }

    .wsco-success-wrapper {
        margin-top: 15px;
        padding: 0 8px;
    }

    .wsco-success-card h1 {
        font-size: 21px;
    }

    .wsco-success-icon {
        width: 60px;
        height: 60px;
        margin-top: 25px;
    }

    .wsco-success-icon span {
        font-size: 31px;
    }

    .wsco-application-id-box,
    .wsco-success-details,
    .wsco-pdf-section,
    .wsco-email-notice,
    .wsco-important-notice {
        margin-left: 13px;
        margin-right: 13px;
    }

    .wsco-id-value {
        font-size: 21px;
        word-break: break-word;
    }

    .wsco-success-actions {
        padding-left: 13px;
        padding-right: 13px;
        flex-direction: column;
    }

    .wsco-home-button,
    .wsco-print-button {
        width: 100%;
    }

}


/* =========================================================
   PRINT
========================================================= */

@media print {

    .wsco-form-header,
    .wsco-form-notice,
    .wsco-application-form,
    .wsco-success-actions {
        box-shadow: none;
    }

    .wsco-submit-area {
        display: none;
    }

}
