@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,700);

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
    font-family: 'Roboto', sans-serif;
}

.postulacion-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 320px;
    padding-top: 10px;
    background: #333333;
    position: relative;
    box-sizing: border-box;
}

.postulacion-form-header img {
    height: 80px;
    width: auto;
}

.postulacion-hero {
    background: #333333;
    color: #ffffff;
    text-align: center;
    padding: 50px 20px 60px;
}

.postulacion-hero__logo {
    margin-bottom: 25px;
}

.postulacion-hero__content {
    max-width: 700px;
    margin: 0 auto;
}

.postulacion-hero h1 {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
}

.postulacion-hero p {
    font-size: 15px;
    color: #dddddd;
    line-height: 1.6;
    margin: 0 0 25px;
}

.postulacion-hero__cta {
    display: inline-block;
    width: auto;
    padding: 14px 40px;
}

.postulacion-section {
    padding: 45px 20px;
}

.postulacion-section--alt {
    background: #f7f7f7;
}

.postulacion-section__inner {
    max-width: 820px;
    margin: 0 auto;
}

.postulacion-final-cta {
    background: #333333;
}

.postulacion-final-cta__inner {
    text-align: center;
}

.postulacion-final-cta__inner h2 {
    display: inline-block;
    border-left: 0;
    padding-left: 0;
    margin-bottom: 20px;
}

.postulacion-section .postulacion-final-cta__title {
    color: #ffffff;
}

.postulacion-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    border-left: 4px solid #5eb7ad;
    padding-left: 12px;
    margin: 0 0 18px;
}

.postulacion-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 22px 0 6px;
}

.postulacion-section h3:first-of-type {
    margin-top: 0;
}

.postulacion-section p {
    font-size: 15px;
    color: #444444;
    line-height: 1.6;
    margin: 0 0 10px;
}

.postulacion-section ul {
    padding-left: 20px;
    margin: 0;
}

.postulacion-section ul li {
    font-size: 15px;
    color: #444444;
    line-height: 1.8;
}

.postulacion-form-section {
    background: #e5e7eb;
    padding-top: 0;
}

.postulacion-form-section .postulacion-card {
    max-width: 780px;
    margin: -220px auto 0;
    position: relative;
    z-index: 2;
}

.postulacion-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
}

.postulacion-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    text-align: center;
    border-left: 0;
    padding-left: 0;
}

.postulacion-subtitle {
    font-size: 14px;
    color: #666666;
    text-align: center;
    margin: 0 0 30px;
}

.postulacion-card fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 25px;
}

.postulacion-card legend {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #5eb7ad;
    padding-bottom: 8px;
    margin-bottom: 20px;
    width: 100%;
}

.postulacion-card label {
    font-size: 13px;
    color: #333333;
    font-weight: 400;
}

.postulacion-optional {
    color: #999999;
    font-weight: 400;
}

.postulacion-section-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.postulacion-reference-card {
    background: #f7f9fa;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 16px 16px 4px;
    margin-bottom: 12px;
}

.postulacion-reference-card:last-child {
    margin-bottom: 0;
}

.postulacion-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-top: 8px;
}

.postulacion-checkbox-group .form-check-inline {
    margin-right: 0;
}

.postulacion-dropzone {
    border: 2px dashed #c9d3d8;
    border-radius: 10px;
    background: #fafbfc;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    margin-top: 8px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.postulacion-dropzone:hover,
.postulacion-dropzone:focus-visible {
    border-color: #5eb7ad;
    background: #f2faf9;
    outline: none;
}

.postulacion-dropzone--dragover {
    border-color: #5eb7ad;
    background: #eaf7f5;
}

.postulacion-dropzone__icon {
    font-size: 26px;
    color: #9aa7ad;
    margin-bottom: 10px;
    display: block;
}

.postulacion-dropzone__text {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin: 0 0 4px;
}

.postulacion-dropzone__hint {
    font-size: 12px;
    color: #8a97a0;
    margin: 0;
}

.postulacion-file-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    font-size: 13px;
    color: #333333;
}

.postulacion-file-list li {
    padding: 8px 12px;
    background: #f7f9fa;
    border-radius: 6px;
    margin-bottom: 6px;
}

.postulacion-hint {
    font-size: 12px;
    color: #999999;
    margin: 8px 0 0;
}

.postulacion-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.postulacion-btn {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    outline: 0;
    border: 0;
    padding: 12px 28px;
    font-size: 13px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.postulacion-btn--primary {
    background: #5eb7ad;
    color: #ffffff;
}

.postulacion-btn--primary:hover,
.postulacion-btn--primary:focus {
    background: #669792;
}

.postulacion-btn--primary:disabled {
    background: #a9d3ce;
    cursor: not-allowed;
}

.postulacion-btn--secondary {
    background: #f2f2f2;
    color: #333333;
}

.postulacion-btn--secondary:hover,
.postulacion-btn--secondary:focus {
    background: #e0e0e0;
}

.postulacion-alert {
    display: none;
    border-radius: 2px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 12px;
    text-align: center;
    color: #ffffff;
}

.postulacion-alert--success {
    display: block;
    background-color: #4caf50;
    border: 2px solid #388e3c;
}

.postulacion-alert--error {
    display: block;
    background-color: #c04848;
    border: 2px solid #9f2e2e;
}

.postulacion-status {
    margin-top: 15px;
    font-size: 13px;
    color: #666666;
    text-align: center;
}

.postulacion-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 320px;
    padding: 14px 18px;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateX(24px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.postulacion-toast--visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.postulacion-toast--success {
    background-color: #4caf50;
    border: 2px solid #388e3c;
}

.postulacion-toast--error {
    background-color: #c04848;
    border: 2px solid #9f2e2e;
}

@media (max-width: 576px) {
    .postulacion-toast {
        left: 16px;
        right: 16px;
        top: 16px;
        max-width: none;
    }
    .postulacion-form-header {
        height: 160px;
    }
    .postulacion-form-header img {
        height: 50px;
    }
    .postulacion-form-section .postulacion-card {
        margin-top: -70px;
    }
    .postulacion-card {
        padding: 25px 20px;
    }
    .postulacion-actions {
        flex-direction: column-reverse;
    }
    .postulacion-btn {
        width: 100%;
    }
    .postulacion-hero {
        padding: 40px 15px 45px;
    }
    .postulacion-hero h1 {
        font-size: 24px;
    }
    .postulacion-section {
        padding: 35px 15px;
    }
}
