﻿/* -----------------------------------------
   APPLICATION HERO
----------------------------------------- */
.application-hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 2vw, 2rem) clamp(0.85rem, 1.5vw, 1.5rem);
    margin-top: 0;
}

.application-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
    z-index: 1;
}

.application-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
    margin-top: 7rem;
}

/* Card */
.application-form-card {
    background: #fff;
    border-radius: 12px;
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    text-align: center;
}

    .application-form-card .pre-headline {
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        margin-bottom: 0.75rem;
    }

    .application-form-card h1 {
        font-size: clamp(1.6rem, 1.6rem + 0.8vw, 2.25rem);
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .application-form-card p {
        font-size: clamp(0.85rem, 0.9vw, 0.95rem);
        color: #666;
        line-height: 1.55;
        margin-bottom: 1.5rem;
    }

.application-text {
    font-size: clamp(0.85rem, 0.9vw, 0.88rem);
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    padding: clamp(0.85rem, 1vw, 1rem) clamp(1rem, 1.25vw, 1.25rem);
    background: #F8F8F8;
    border-radius: 6px;
}

/* -----------------------------------------
   FORM
----------------------------------------- */
.application-form-card form,
.application-form-card .umbraco-forms-form,
.application-form-card .umbraco-forms-page,
.application-form-card fieldset,
.application-form-card .umbraco-forms-fieldset,
.application-form-card .umbraco-forms-container,
.application-form-card .umbraco-forms-page-fields {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.application-form-card .umbraco-forms-field {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 0 1rem !important;
    padding: 0 !important;
    display: block !important;
}

.application-form-card .umbraco-forms-field-wrapper {
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.application-form-card .umbraco-forms-label {
    display: none !important;
}

.application-form-card .umbraco-forms-field.dataconsent .umbraco-forms-label {
    display: none !important;
}

/* Dataconsent — checkbox and text on same line */
.application-form-card .umbraco-forms-field.dataconsent .umbraco-forms-field-wrapper {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
}

.application-form-card .umbraco-forms-field.dataconsent label {
    display: inline !important;
    text-align: left !important;
    cursor: pointer !important;
    font-size: 0.88rem !important;
    color: #666 !important;
    white-space: normal !important;
    flex: 1 !important;
}

    .application-form-card .umbraco-forms-field.dataconsent label a {
        color: #ff6600 !important;
        font-weight: 600 !important;
        text-decoration: underline !important;
    }

.application-form-card input[type="text"],
.application-form-card input[type="email"],
.application-form-card input[type="tel"],
.application-form-card textarea,
.application-form-card .umbraco-forms-field input,
.application-form-card .umbraco-forms-field textarea,
.application-form-card .umbraco-forms-field-wrapper input,
.application-form-card .umbraco-forms-field-wrapper textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    background: #F8F8F8 !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 6px !important;
    padding: clamp(0.8rem, 1vw, 0.95rem) 1.25rem !important;
    font-size: clamp(0.9rem, 1vw, 0.95rem) !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    margin: 0 !important;
}

    .application-form-card input::placeholder,
    .application-form-card textarea::placeholder {
        color: #999 !important;
    }

    .application-form-card input[type="text"]:focus,
    .application-form-card input[type="email"]:focus,
    .application-form-card input[type="tel"]:focus,
    .application-form-card textarea:focus {
        background: #fff !important;
        border-color: #ff6600 !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(255,102,0,0.08) !important;
    }

.application-form-card textarea {
    min-height: 100px !important;
    max-height: 100px !important;
    resize: none !important;
}

.application-form-card input[type="file"] {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: clamp(0.7rem, 0.75vw, 0.75rem) 1rem !important;
    background: #F8F8F8 !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 6px !important;
    font-size: clamp(0.88rem, 0.9vw, 0.9rem) !important;
    display: block !important;
    cursor: pointer !important;
}

/* Checkbox */
.application-form-card .umbraco-forms-field label {
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    color: #666 !important;
}

.application-form-card input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex-shrink: 0 !important;
    accent-color: #ff6600 !important;
    cursor: pointer !important;
    margin: 2px 0 0 0 !important;
}

/* Submit */
.application-form-card .umbraco-forms-navigation,
.application-form-card .umbraco-forms-submitbutton {
    width: 100% !important;
    margin-top: 0.5rem !important;
}

.application-form-card input[type="submit"],
.application-form-card button[type="submit"] {
    width: 100% !important;
    background: #ff6600 !important;
    color: #fff !important;
    font-size: clamp(0.92rem, 1vw, 0.95rem) !important;
    font-weight: 600 !important;
    padding: clamp(0.8rem, 1vw, 0.9rem) 2rem !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: capitalize !important;
}

    .application-form-card input[type="submit"]:hover,
    .application-form-card button[type="submit"]:hover {
        background: #e65c00 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 18px rgba(255,102,0,0.35) !important;
    }

/* -----------------------------------------
   APPLICATION POPUP
----------------------------------------- */
.application-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .application-popup-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.application-popup {
    background: #fff;
    border-radius: 20px;
    padding: clamp(2rem, 3vw, 3rem) clamp(1.75rem, 2.5vw, 2.5rem);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.application-popup-overlay.active .application-popup {
    transform: scale(1);
    opacity: 1;
}

.application-popup-icon {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ff6600, #ff8533);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .application-popup-icon i {
        color: #fff;
        font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    }

.application-popup h3 {
    font-size: clamp(1.35rem, 1.75vw, 1.75rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.application-popup p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.application-popup-btn {
    background: #ff6600;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9rem 2.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

    .application-popup-btn:hover {
        background: #cc4f00;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255,102,0,0.4);
    }

/* -----------------------------------------
   SOCIAL
----------------------------------------- */
.application-social {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

    .application-social a {
        width: clamp(40px, 4vw, 46px);
        height: clamp(40px, 4vw, 46px);
        border-radius: 50%;
        background: #ff6600;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff !important;
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

        .application-social a:hover {
            background: #e65c00;
            transform: translateY(-3px);
            box-shadow: 0 6px 18px rgba(255,102,0,0.35);
        }

/* Mobile */
@media (max-width: 768px) {
    .application-hero {
        min-height: auto;
    }

    .application-hero-content {
        max-width: 100%;
    }
}
