﻿/* ==========================================================
   postulacion-form.css
   Shared form styles for all Postulación pages.
   Covers: .post-section-content, .post-apply, .post-form,
           .post-form__label, .post-form__title, .post-form__buttons,
           .post-form__hint, .upload-card, .local-loader, .verification
   ========================================================== */

/* ---- Section wrapper ---- */
.post-section-content {
    display: flex;
    max-width: 992px;
    padding: 80px 24px;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    align-self: stretch;
    margin: 0 auto;
}

/* ---- Apply card (the bordered container) ---- */
.post-apply {
    display: flex;
    padding: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid var(--Border-inputs, #7B7B7B);
    background: var(--Background-color-surface-app, #FAFAFA);
    max-width: 664px;
    width: 100%;
}

    .post-apply form {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

.post-apply__title {
    color: var(--color-base-black, #000);
    text-align: center;
    font-family: var(--font-family-Poppins, Poppins);
    font-size: 24px;
    font-style: normal;
    font-weight: var(--font-weight-semibold, 600);
    line-height: 130%;
    max-width: 650px;
    margin-bottom: 24px;
}

/* ---- Form inner container ---- */
.post-form {
    padding: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ---- Form title ---- */
.post-form__title {
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    margin: 0 0 4px;
}

/* ---- Labels ---- */
.post-form__label {
    display: block;
    margin: 0;
    font-family: var(--font-family-Nunito-Sans, "Nunito Sans"), sans-serif;
    font-size: 16px;
    color: var(--gray-color-neutral-800, #262626);
    line-height: 20px;
    text-align: left;
}

/* ---- Hint text ---- */
.post-form__hint {
    margin-top: 4px;
    font-size: 14px;
    color: #4C4C4C;
}

/* ---- Buttons area ---- */
.post-form__buttons {
    padding: 0;
    width: 100%;
}

    .post-form__buttons hr {
        margin: 16px 0;
        border-color: #e0e0e0;
    }

/* ---- Upload card ---- */
.upload-card {
    position: relative;
    width: 10rem;
    height: 10rem;
    cursor: pointer;
}

    .upload-card.is-empty .upload-card__placeholder {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        border-radius: var(--radius-lg, 12px);
        background: var(--primary-green-50, #E9FFF6);
        box-shadow: 0 0 0 1px var(--primary-green-100, #CFFAE7) inset;
        pointer-events: none;
        transition: background .3s ease, box-shadow .3s ease;
    }

    .upload-card.is-empty:hover .upload-card__placeholder {
        background: var(--primary-green-100, #D6FFF1);
        box-shadow: 0 0 0 2px var(--primary-green-200, #AEEED8) inset;
    }

.upload-card__icon {
    font-size: 40px;
    line-height: 1;
    color: var(--primary-green-700, #0F766E);
    opacity: .95;
}

.upload-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--radius-md, 10px);
    background: var(--surface, #E9FFF6);
    box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 0 0 1px var(--primary-green-200, #AEEED8) inset;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: black;
    pointer-events: none;
}

.upload-card__cta-icon {
    font-size: 18px;
    line-height: 1;
    color: black;
}

/* ---- Verification section ---- */
.verification-section {
    background: var(--primary-green-50, #f0fdf4);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--primary-green-200, #bbf7d0);
}

.verification-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.verification-icon {
    font-size: 2rem;
    color: var(--primary-green-600, #16a34a);
    flex-shrink: 0;
}

.verification-section .post-form__label {
    font-weight: 600;
    color: var(--gray-color-neutral-800, #262626);
}

/* ---- Cropper responsive ---- */
.cropper-host {
    max-width: 664px;
    width: 100%;
}

.post-section-content .cropper-container {
    max-width: 100%;
}

    .post-section-content .cropper-container img,
    .post-section-content .cropper-wrap-box img {
        max-width: 100%;
        height: auto;
    }

/* ---- Country picker width fix ---- */
.custom-width-dropdown {
    width: 100%;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .post-apply {
        padding: 16px;
    }

    .post-section-content {
        padding: 48px 16px;
    }
}
