/* Frontend Form Styles - Very Light & Bright Theme */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.jaf-form-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
}

.jaf-application-form {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}


.jaf-form-row {
    margin-bottom: 24px;
}

.jaf-row-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .jaf-row-two-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .jaf-application-form {
        padding: 30px 20px;
    }
}

.jaf-form-group {
    position: relative;
    min-width: 0;
}

.jaf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.jaf-form-group .required {
    color: #fc8181;
}

.jaf-form-group .optional {
    font-weight: 400;
    color: #a0aec0;
    font-size: 13px;
}

.jaf-form-control {
    width: 100%;
    max-width: 100%;
    padding: 8px 10px !important;
    /* Reduced padding */
    font-size: 15px !important;
    line-height: 1.5;
    color: #2d3748 !important;
    background-color: #ffffff !important;
    border: 1px solid transparent !important;
    /* No visible border initially */
    border-bottom: 1px solid #e2e8f0 !important;
    /* Only bottom border or kept minimal if requested 'no border' */
    border-radius: 4px !important;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
    box-shadow: none !important;
}




.jaf-form-control:focus {
    outline: none;
    border: 1px solid #000000 !important;
    /* Black border on click */
    background-color: #ffffff;
    box-shadow: none !important;
    border-radius: 4px !important;
}


.jaf-form-control:hover:not(:focus) {
    border-color: #cbd5e0;
}

textarea.jaf-form-control {
    resize: vertical;
    min-height: 120px;
}

select.jaf-form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23a0aec0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
}

.jaf-file-input-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.jaf-file-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.jaf-file-label {
    display: flex;
    align-items: center;
    padding: 14px 20px !important;
    background: #ffffff !important;
    border: 1px dashed #cbd5e0 !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
}



.jaf-file-label:hover {
    background: #f7fafc;
    border-color: #63b3ed;
}

.jaf-file-input:focus+.jaf-file-label {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
}

.jaf-file-icon {
    font-size: 24px;
    flex-shrink: 0;
    color: #4a5568;
}


.jaf-file-text {
    flex: 1;
    color: #718096;
    font-size: 14px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jaf-file-name {
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.jaf-help-text {
    display: block;
    margin-top: 6px;
    color: #a0aec0;
    font-size: 13px;
}

.jaf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.jaf-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2d3748;
}


.jaf-checkbox-label span {
    flex: 1;
    font-size: 14px;
    color: #4a5568;
}

.jaf-submit-button {
    width: 100%;
    padding: 16px 32px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #ffffff !important;
    background: #2d3748 !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}



.jaf-submit-button:hover:not(:disabled) {
    background: #1a202c;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}


.jaf-submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.jaf-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.jaf-button-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.jaf-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: jafSpinAnimation 0.8s linear infinite;
}

@keyframes jafSpinAnimation {
    to {
        transform: rotate(360deg);
    }
}

.jaf-messages {
    margin-bottom: 20px;
}

.jaf-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    animation: jafSlideIn 0.3s ease;
}

@keyframes jafSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.jaf-message-success {
    background: #f0fdf4;
    color: #047857;
    border-left: 4px solid #22c55e;
}

.jaf-message-error {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #f87171;
}

.jaf-message-warning {
    background: #fffbeb;
    color: #d97706;
    border-left: 4px solid #fbbf24;
}

.jaf-char-count {
    display: block;
    margin-top: 6px;
    text-align: right;
    font-size: 12px;
    color: #9ca3af;
}

.jaf-form-control.jaf-error {
    border-color: #f87171;
}

.jaf-form-control.jaf-error:focus {
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

.jaf-error-message {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 13px;
}

@media (max-width: 480px) {
    .jaf-form-wrapper {
        margin: 20px auto;
    }

    .jaf-application-form {
        padding: 24px 16px;
        border-radius: 8px;
    }

    .jaf-submit-button {
        padding: 12px 24px;
        font-size: 15px;
    }

    .jaf-language-switcher {
        text-align: center;
        margin-bottom: 16px;
    }

    .jaf-lang-dropdown {
        width: 100%;
        min-width: auto;
    }
}


.jaf-language-switcher {
    text-align: right;
    margin-bottom: 20px;
}

.jaf-lang-dropdown {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.5;
    background-color: #ffffff;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23a0aec0' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 40px;
    min-width: 180px;
}

.jaf-lang-dropdown:hover {
    border-color: #cbd5e0;
}

.jaf-lang-dropdown:focus {
    outline: none;
    border-color: #63b3ed;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
}

@media print {

    .jaf-submit-button,
    .jaf-file-input-wrapper,
    .jaf-language-switcher {
        display: none;
    }
}

.jaf-language-switcher {
    text-align: right;
    margin-bottom: 20px;
}

.jaf-lang-dropdown {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #4a5568;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.jaf-lang-dropdown:hover {
    border-color: #cbd5e0;
}

.jaf-lang-dropdown:focus {
    border-color: #63b3ed;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.1);
}