.bodyContainer {
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background: var(--page-bg);
    background-image: url(../assets/images/backGroundSummer.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: soft-light;
}

.logoPattern { display: none; }

.card {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: min(85.5%, 1200px);
    max-height: min(76%, 900px);
    height: auto;
    max-width: none;
    background: var(--surface);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: var(--card-padding);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border: none;
}

.card.active {
    display: flex;
    z-index: 1;
    animation: screenIn var(--transition) ease forwards;
}

@keyframes screenIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.card > .loader {
    position: absolute;
    right: 20px;
    top: 20px;
}

.mynetworklogo {
    display: block;
    padding-top: clamp(12px, 3vh, 20px);
    width: min(400px, 40vw);
    max-width: 40vh;
    height: auto;
    margin: 0 auto var(--space-md);
}

.brand-logo { display: none; }

.cardContent,
.cardFooter,
.step3CardContainer,
.step4CardContainer,
.step5CardContainer,
.step2cardContainer,
.step0CardContainer {
    width: 100%;
    max-width: 800px;
}

.cardContent {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--section-gap);
}

.step3CardContainer,
.step2cardContainer,
.step4CardContainer,
.step5CardContainer {
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
}

.cardFooter {
    text-align: center;
    flex-shrink: 0;
    margin-top: var(--space-md);
    width: 100%;
    max-width: 800px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    width: 100%;
}

.row:last-child {
    margin-bottom: 0;
}

.col.half {
    flex: 1 1 calc(50% - var(--space-sm) / 2);
    min-width: min(100%, 220px);
    display: flex;
    flex-direction: column;
}

.col.third {
    flex: 1 1 calc(33.33% - var(--space-sm) * 2 / 3);
    min-width: 100px;
    display: flex;
    flex-direction: column;
}

.col.half .form-input,
.col.half .form-select,
.col.half .custom-select,
.col.third .form-input,
.col.third .form-select,
.col.third .custom-select {
    margin-bottom: 0;
}

.progress-dots,
.screen-nav,
.btn-back {
    display: none !important;
}

/* Desktop — kompakt yerleşim */
@media only screen and (min-width: 1025px) {
    .card {
        padding: clamp(20px, 2.5vh, 40px);
        max-height: min(78%, 920px);
    }

    .cardContent,
    .step3CardContainer,
    .step2cardContainer,
    .step4CardContainer,
    .step5CardContainer {
        gap: 10px;
    }

    .cardFooter {
        margin-top: var(--space-xs);
    }

    .row {
        gap: 8px;
        margin-bottom: 6px;
    }

    #step3Card .step3CardContainer {
        gap: 6px;
    }

    #step3Card .inputRowHeader {
        margin-top: 10px;
        margin-bottom: 4px;
    }

    #step3Card .row > .inputRowHeader:first-child {
        margin-top: 6px;
    }

    #step3Card .form-input,
    #step3Card .form-select {
        min-height: 42px;
        height: 42px;
    }

    #step3Card .genderSelector {
        height: 40px;
        margin-top: 0;
        margin-bottom: 10px;
    }

    #step3Card .genderSelectorCol {
        line-height: 40px;
    }

    #step3Card .checkbox-row {
        margin: 6px 0;
    }

    #step3Card .infoCardDetail {
        margin-top: 6px;
        font-size: 12px;
        line-height: 1.45;
    }

    #step3Card .step3Title {
        margin-bottom: 8px;
        padding: 0;
    }
}

/* Tablet / mobil — mavi arka plan kalkar, kart tam ekran */
@media only screen and (max-width: 1024px) {
    .bodyContainer {
        background: var(--surface);
        background-image: none;
    }

    .card {
        width: 100%;
        height: 100%;
        min-height: 100vh;
        max-height: none;
        margin: 0;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

/* Tablet */
@media only screen and (max-width: 1024px) and (min-width: 769px) {
	.step3CardContainer {
		padding-bottom: 100px
	}
	
    .card {
        padding: clamp(24px, 3.5vw, 40px);
    }
}

/* Mobile */
@media only screen and (max-width: 768px) {
	
	.step3CardContainer {
		padding-bottom: 100px
	}
	
	
    .card {
        padding: 20px;
        padding-bottom: calc(4rem + var(--safe-area-bottom));
        justify-content: flex-start;
    }

    #step1Card .cardContent,
    #step2Card .cardContent {
        flex: 0 0 auto;
    }

    #step2Card .step2cardContainer,
    #step3Card .step3CardContainer {
        flex: 0 0 auto;
    }

    .mynetworklogo {
        padding-top: 12px;
        width: min(300px, 70vw);
        max-width: 28vh;
    }

    .col.half,
    .col.third {
        flex: 1 1 100%;
    }
}

/* Short viewport */
@media only screen and (max-height: 551px) {
    .bodyContainer {
        background: var(--surface);
        background-image: none;
    }

    .card {
        width: 100%;
        height: 100% !important;
        min-height: 100vh;
        margin: 0;
        padding: 20px;
        top: 0 !important;
        border-radius: 0;
        box-shadow: none;
    }

    .card.active {
        z-index: 999;
    }
	.step3CardContainer {
		padding-bottom: 50px
	}
}

/* Small mobile */
@media only screen and (max-width: 480px) {
	.step3CardContainer {
		padding-bottom: 50px
	}
    .card {
        padding: 16px;
        padding-bottom: calc(4rem + var(--safe-area-bottom));
    }
}

@media only screen and (max-width: 1400px) {
    .mynetworklogo {
        padding-top: 20px;
        width: 300px;
        max-width: 28vh;
    }
}
