/**
 * ASLC - UI/UX Pro Max Stylesheet
 * Crafted with modern design principles (Elevation, Micro-animations, Clean Gradients)
 */

:root {
    --aslc-primary: #0033a0;
    --aslc-primary-hover: #002277;
    --aslc-primary-glow: rgba(0, 51, 160, 0.25);
    --aslc-green-text: #1b5e20;
    --aslc-green-bg: linear-gradient(135deg, #f1f8f1 0%, #e2f0e2 100%);
    --aslc-green-border: #c8e6c9;
    --aslc-yellow-bg: linear-gradient(to right, #fffdf0 0%, #fff9e6 100%);
    --aslc-yellow-border: #f5ecc5;
    --aslc-red-bg: linear-gradient(135deg, #fff5f5 0%, #ffebee 100%);
    --aslc-red-text: #b71c1c;
    --aslc-red-border: #ffcdd2;
    --aslc-red-icon: #d32f2f;
    --aslc-text: #333333;
    --aslc-text-muted: #555555;
    --aslc-border: #e0e0e0;
    --aslc-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --aslc-shadow-md: 0 12px 28px -6px rgba(0, 0, 0, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
    --aslc-radius: 12px;
}


/* Interactive Action Button */
.aslc-card-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--aslc-primary);
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px var(--aslc-primary-glow);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.aslc-card-button:hover {
    background: var(--aslc-primary-hover);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 160, 0.35);
}

.aslc-card-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--aslc-primary-glow);
}

.aslc-btn-arrow {
    transition: transform 0.25s ease;
    opacity: 0.85;
}

.aslc-card-button:hover .aslc-btn-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* WhatsApp Toggle Button */
.aslc-wa-toggle-btn {
    background: #25D366;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.aslc-wa-toggle-btn:hover {
    background: #1ebe57;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Apply Box — single-card, modern minimalist (replaces old status+initial two-box layout) */
.aslc-apply-box {
    background-color: #eaf2ff;
    border: 1px solid #d3e4fd;
    border-radius: 4px;
    padding: 28px;
    margin: 32px 0;
    font-family: inherit;
}

.aslc-apply-heading {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.aslc-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 24px;
    border: none;
    border-radius: 4px;
    background-color: #2563eb;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.1px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.aslc-apply-btn:hover {
    background-color: #1d4ed8;
    color: #ffffff !important;
}

.aslc-apply-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 16px 0 0;
    color: #475569;
    font-size: 13.5px;
    text-align: center;
}

.aslc-apply-caption svg {
    flex-shrink: 0;
    color: #64748b;
}

.aslc-apply-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 4px;
    background-color: #bfdbfe;
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
}

.aslc-apply-status .dashicons {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
    color: #16a34a;
}

.aslc-apply-status-urgent {
    background-color: #fde68a;
    color: #78350f;
}

.aslc-apply-status-urgent .dashicons {
    color: #b45309;
}

/* Card Footer (Close Date) */
.aslc-card-footer {
    background: var(--aslc-yellow-bg);
    padding: 14px 22px;
    border-top: 1px solid var(--aslc-yellow-border);
    color: var(--aslc-text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aslc-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e65100;
    background: rgba(230, 81, 0, 0.08);
    padding: 5px;
    border-radius: 6px;
}

/* Closed Banner (UI/UX Pro Max Alert) */
.aslc-closed-banner {
    background: var(--aslc-red-bg);
    color: var(--aslc-red-text);
    border: 1px solid var(--aslc-red-border);
    border-radius: var(--aslc-radius);
    padding: 20px 24px;
    margin: 35px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aslc-closed-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(211, 47, 47, 0.12);
}

.aslc-closed-banner .aslc-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--aslc-red-icon);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.4);
    flex-shrink: 0;
}

.aslc-closed-banner .aslc-svg-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.8;
}

/* Responsive adjustments */
@media (max-width: 600px) {

    .aslc-card-footer,
    .aslc-closed-banner {
        padding: 16px;
    }

    .aslc-card-button {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* Apply Result Styles */
.aslc-res-card {
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    text-align: left;
    overflow: hidden;
    animation: aslc-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes aslc-fade-in {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aslc-res-header {
    background: #edf7ed;
    color: #1b5e20;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #c8e6c9;
}

.aslc-res-check {
    color: #2e7d32;
    display: flex;
    align-items: center;
}

.aslc-res-body {
    padding: 18px 20px;
}

.aslc-res-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.aslc-res-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    font-size: 15px;
}

.aslc-res-lbl {
    color: #64748b;
    font-weight: 500;
    min-width: 95px;
}

.aslc-res-pos {
    color: #15803d;
    font-weight: 700;
    font-size: 16px;
}

.aslc-res-comp {
    color: #0f172a;
    font-weight: 700;
    font-size: 16px;
}

.aslc-res-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 14px 0;
}

.aslc-res-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aslc-res-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.aslc-res-item-lbl {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.aslc-res-item-lbl svg {
    color: #10b981;
}

.aslc-res-item-val {
    font-size: 15px;
    line-height: 1.5;
    color: #1e293b;
}

.aslc-res-item-val-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
}

.aslc-res-item-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.aslc-res-item-lbl-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
}

.aslc-res-item-lbl-inline svg {
    color: #10b981;
    flex-shrink: 0;
}

.aslc-res-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.aslc-res-link:hover {
    color: #0369a1;
    text-decoration: underline;
}

.aslc-res-break {
    word-break: break-all;
}

.aslc-res-text {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14.5px;
    color: #334155;
}

.aslc-res-date {
    font-weight: 600;
    color: #0f172a;
}

.aslc-res-footer {
    background: linear-gradient(to right, #fffdf0 0%, #fff9e6 100%);
    padding: 14px 22px;
    border-top: 1px solid #f5ecc5;
    color: #333333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aslc-footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e65100;
    background: rgba(230, 81, 0, 0.08);
    padding: 5px;
    border-radius: 6px;
}

/* Application Form Styles — Modern Minimalist */
.aslc-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aslc-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.aslc-form-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.aslc-required {
    color: #94a3b8;
    font-weight: 600;
}

.aslc-form-input {
    width: 100%;
    padding: 10px 2px;
    border: none;
    border-bottom: 1.5px solid #e2e8f0;
    border-radius: 0;
    font-size: 15px;
    color: #0f172a;
    background: transparent;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}

.aslc-form-input:focus {
    border-bottom-color: #0f172a;
    box-shadow: none;
}

.aslc-form-input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

select.aslc-form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    padding-right: 24px;
    cursor: pointer;
}

textarea.aslc-form-input {
    resize: vertical;
    min-height: 44px;
}

.aslc-form-row {
    display: flex;
    gap: 14px;
}

.aslc-form-submit-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.aslc-form-submit-group.aslc-form-submit-inline {
    flex-direction: row;
    flex-wrap: wrap;
}

.aslc-form-submit-group.aslc-form-submit-inline .aslc-form-submit {
    width: auto;
    flex: 0 0 auto;
}

.aslc-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background-color: #0f172a;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.aslc-form-submit:hover {
    background-color: #25D366;
}

.aslc-form-submit:active {
    transform: scale(0.98);
}

.aslc-form-submit svg {
    flex-shrink: 0;
}

.aslc-form-help {
    margin: 10px 0 0;
    color: #b45309;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
}

/* Responsive: stack form rows on mobile */
@media (max-width: 600px) {
    .aslc-form-row {
        flex-direction: column;
        gap: 14px;
    }

    .aslc-form-submit-group.aslc-form-submit-inline {
        flex-direction: column;
    }

    .aslc-form-submit-group.aslc-form-submit-inline .aslc-form-submit {
        width: 100%;
    }
}