:root {
    --ship-navy: #071d2b;
    --ship-navy-soft: #0d2b3c;
    --ship-blue: #1a7890;
    --ship-aqua: #7cc7c9;
    --ship-gold: #d5a860;
    --ship-paper: #fbfaf6;
    --ship-cream: #f3efe7;
    --ship-white: #ffffff;
    --ship-text: #18303b;
    --ship-muted: #6d7c82;
    --ship-danger: #b54949;
    --ship-border: rgba(7, 29, 43, 0.13);
    --ship-shadow: 0 24px 70px rgba(7, 29, 43, 0.13);
}

.ship-application,
.ship-application * {
    box-sizing: border-box;
}

.ship-application {
    position: relative;
    padding: 110px 0;
    overflow: hidden;
    color: var(--ship-text);
    background: var(--ship-paper);
}

.ship-application-container {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.ship-application-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 0.85fr)
        minmax(0, 1.15fr);
    gap: 35px;
    align-items: stretch;
}

/* Bal oldali képes blokk */

.ship-application-visual {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    border-radius: 34px;
    background:
        linear-gradient(
            180deg,
            rgba(4, 21, 31, 0.07) 10%,
            rgba(4, 21, 31, 0.88) 100%
        ),
        url("/_projects/osszkerek/templates/hajosjogsi/images/ship-form.jpg")
            center center / cover no-repeat;
    box-shadow: 0 20px 60px rgba(7, 29, 43, 0.12);
}

.ship-visual-copy {
    position: absolute;
    right: 42px;
    bottom: 45px;
    left: 42px;
    z-index: 2;
    color: var(--ship-white);
}

.ship-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--ship-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ship-eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
}

.ship-visual-copy h2 {
    max-width: 430px;
    margin: 0;
    color: var(--ship-white);
    font-family: Georgia, serif;
    font-size: clamp(38px, 5vw, 61px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.ship-visual-copy p {
    max-width: 450px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 1.7;
}

.ship-visual-benefits {
    display: grid;
    gap: 13px;
    margin-top: 30px;
}

.ship-visual-benefit {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

.ship-visual-benefit-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: var(--ship-gold);
    background: rgba(255, 255, 255, 0.07);
}

/* Jobb oldali űrlapkártya */

.ship-form-card {
    min-width: 0;
    padding: clamp(30px, 5vw, 62px);
    border: 1px solid var(--ship-border);
    border-radius: 34px;
    background: var(--ship-white);
    box-shadow: var(--ship-shadow);
}

.ship-form-header {
    margin-bottom: 34px;
}

.ship-form-header .ship-eyebrow {
    color: var(--ship-blue);
}

.ship-form-header h3 {
    margin: 0 0 13px;
    color: var(--ship-navy);
    font-family: Georgia, serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.ship-form-header > p {
    max-width: 560px;
    margin: 0;
    color: var(--ship-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* Folyamatjelző */

.ship-progress {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 32px;
}

.ship-progress-item {
    position: relative;
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid var(--ship-border);
    border-radius: 14px;
    color: var(--ship-muted);
    background: #f9faf8;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.ship-progress-item.is-active {
    border-color: rgba(26, 120, 144, 0.35);
    color: var(--ship-navy);
    background: rgba(124, 199, 201, 0.13);
}

.ship-progress-item.is-complete {
    border-color: rgba(213, 168, 96, 0.38);
    color: var(--ship-navy);
    background: rgba(213, 168, 96, 0.12);
}

.ship-progress-item small {
    display: block;
    margin-bottom: 2px;
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.72;
}

.ship-progress-item strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Űrlaplépések */

.ship-form-step {
    animation: shipStepFade 0.32s ease;
}

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

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

.ship-step-header {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 27px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--ship-border);
}

.ship-step-number {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--ship-navy);
    background: rgba(213, 168, 96, 0.25);
    font-size: 13px;
    font-weight: 700;
}

.ship-step-header strong {
    display: block;
    color: var(--ship-navy);
    font-family: Georgia, serif;
    font-size: 21px;
    font-weight: 400;
}

.ship-step-header p {
    margin: 4px 0 0;
    color: var(--ship-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Mezők elrendezése */

.ship-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ship-form-group {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 8px;
}

.ship-form-group-full {
    grid-column: 1 / -1;
}

.ship-form-group > label {
    margin: 0;
    color: var(--ship-navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.ship-required {
    color: var(--ship-danger);
}

/* Űrlapelemek */

#ship-apply-form {
    margin: 0;
}

#ship-apply-form input[type="text"],
#ship-apply-form input[type="email"],
#ship-apply-form input[type="tel"],
#ship-apply-form input[type="date"],
#ship-apply-form input[type="month"],
#ship-apply-form select,
#ship-apply-form textarea {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 1px solid var(--ship-border);
    border-radius: 12px;
    outline: none;
    color: var(--ship-text);
    background: #f9faf8;
    box-shadow: none;
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

#ship-apply-form input[type="text"],
#ship-apply-form input[type="email"],
#ship-apply-form input[type="tel"],
#ship-apply-form input[type="date"],
#ship-apply-form input[type="month"],
#ship-apply-form select {
    height: 54px;
    padding: 0 16px;
}

#ship-apply-form textarea {
    min-height: 130px;
    padding: 14px 16px;
    line-height: 1.6;
    resize: vertical;
}

#ship-apply-form input::placeholder,
#ship-apply-form textarea::placeholder {
    color: #93a0a5;
    opacity: 1;
}

#ship-apply-form input:focus,
#ship-apply-form select:focus,
#ship-apply-form textarea:focus {
    border-color: var(--ship-blue);
    background: var(--ship-white);
    box-shadow: 0 0 0 4px rgba(26, 120, 144, 0.09);
}

#ship-apply-form select {
    appearance: auto;
    cursor: pointer;
}

/* Checkbox */

.ship-checkbox-wrapper {
    display: grid;
    gap: 8px;
}

.ship-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--ship-border);
    border-radius: 14px;
    background: #f9faf8;
}

.ship-checkbox-row input[type="hidden"] {
    display: none;
}

.ship-checkbox-row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--ship-blue);
    cursor: pointer;
}

.ship-checkbox-row label {
    margin: 0;
    color: var(--ship-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.65;
    cursor: pointer;
}

/* Gombok és alsó rész */

.ship-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 29px;
}

.ship-form-actions-end {
    justify-content: flex-end;
}

.ship-form-note {
    max-width: 320px;
    margin: 0;
    color: var(--ship-muted);
    font-size: 12px;
    line-height: 1.6;
}

#ship-apply-form .button,
#ship-apply-form button,
#ship-apply-form input[type="submit"],
#ship-apply-form input[type="button"] {
    width: auto;
    min-width: 150px;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 14px 27px;
    border: 1px solid transparent;
    border-radius: 999px;
    outline: none;
    color: var(--ship-navy);
    background: var(--ship-gold);
    box-shadow: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

#ship-apply-form .button:hover,
#ship-apply-form button:hover,
#ship-apply-form input[type="submit"]:hover,
#ship-apply-form input[type="button"]:hover {
    transform: translateY(-2px);
    background: #e2b875;
    box-shadow: 0 12px 30px rgba(213, 168, 96, 0.28);
}

#ship-apply-form .button:focus-visible,
#ship-apply-form button:focus-visible,
#ship-apply-form input[type="submit"]:focus-visible,
#ship-apply-form input[type="button"]:focus-visible {
    box-shadow:
        0 0 0 4px rgba(213, 168, 96, 0.2),
        0 12px 30px rgba(213, 168, 96, 0.24);
}

/* Hibaüzenetek */

#ship-apply-form .help-block {
    min-height: 18px;
    margin: 0;
    color: var(--ship-danger);
    font-size: 12px;
    line-height: 1.45;
}

#ship-apply-form .help-block:empty {
    min-height: 0;
}

#ship-apply-form .help-block ul {
    margin: 0;
    padding-left: 18px;
}

#ship-apply-form .has_error {
    border-color: var(--ship-danger) !important;
    box-shadow:
        0 0 0 4px rgba(181, 73, 73, 0.08) !important;
}

.ship-form-card span.error {
    display: block;
    margin-top: 12px;
    color: var(--ship-danger);
}

/* Tablet */

@media (max-width: 1000px) {
    .ship-application-layout {
        grid-template-columns: 1fr;
    }

    .ship-application-visual {
        min-height: 520px;
    }
}

/* Mobil */

@media (max-width: 720px) {
    .ship-application {
        padding: 75px 0;
    }

    .ship-application-container {
        width: min(100% - 24px, 1180px);
    }

    .ship-application-visual {
        min-height: 490px;
        border-radius: 24px;
    }

    .ship-visual-copy {
        right: 25px;
        bottom: 28px;
        left: 25px;
    }

    .ship-visual-copy h2 {
        font-size: 38px;
    }

    .ship-form-card {
        padding: 30px 22px;
        border-radius: 24px;
    }

    .ship-progress {
        grid-template-columns: 1fr;
    }

    .ship-progress-item strong {
        white-space: normal;
    }

    .ship-form-grid {
        grid-template-columns: 1fr;
    }

    .ship-form-group-full {
        grid-column: auto;
    }

    .ship-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ship-form-note {
        max-width: none;
    }

    #ship-apply-form .button,
    #ship-apply-form button,
    #ship-apply-form input[type="submit"],
    #ship-apply-form input[type="button"] {
        width: 100%;
    }
}