.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px auto;
}

.preview-container {
    position: relative;
    width: 90px;
    height: 120px;
    border: 2px dashed #ccc;
    /* Changed border style */
    overflow: hidden;
    border-radius: 10px;
    background-color: #f5f5f5;
    /* Changed background color */
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 18px;
}

.plus-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    position: absolute;
    width: 20px;
    height: 20px;
    bottom: 0px;
    right: 0px;
    cursor: pointer;
    border-radius: 50%;
    background-color: red;

}

.plus_icon {
    font-size: 24px;
    color: #ccc;
}

.close-button {
    position: absolute;
    top: 0px;
    right: 5px;
    cursor: pointer;
    font-size: 24px;
    color: red;
    /* display: none; */
}

.preview-container {
    position: relative;
    width: 300px;
    height: 198px;
    border: 2px dashed #ccc;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f5f5f5;
}

.image-wrapper {
    width: 300px;
    display: flex;
    flex-direction: column;
}

.image-wrapper input {
    width: 100%;
    margin-top: 5px;
    border: 2px dashed #ccc;
    height: 50px;
    border-radius: 5px;
    padding: 10px;
}

.image-wrapper input::placeholder {
    color: #ccc;
    opacity: 1;
}

/* ================= MODE: 360 × 800 ONLY ================= */
@media (max-width: 390px) {

    .grid-container {
        grid-template-columns: 1fr !important;
        padding-left: 14px;
        padding-right: 14px;
        gap: 18px;
    }

    .preview-container {
        width: 100% !important;
        height: 220px !important;
    }

}

/* ================= MODE: 1280 × 800 ================= */
@media (width: 1280px) and (height: 800px) {

    /* PHOTO GRID — keep horizontal gap tight */
    .grid-container {
        grid-template-columns: repeat(3, auto) !important;
        justify-content: start !important;
        justify-items: start !important;
        margin: 20px 0 !important;

        gap: 20px 8px !important;
        /* vertical 20px, horizontal 8px */
    }

    /* DOB — keep fixed widths + remove inner padding */
    label[for="dob"]+.d-flex {
        gap: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    label[for="dob"]+.d-flex>div {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    label[for="dob"]+.d-flex>div:nth-child(1) {
        flex: 0 0 80px !important;
        max-width: 80px !important;
    }

    label[for="dob"]+.d-flex>div:nth-child(2) {
        flex: 1 1 auto !important;
        min-width: 160px !important;
    }

    label[for="dob"]+.d-flex>div:nth-child(3) {
        flex: 0 0 100px !important;
        max-width: 100px !important;
    }

    label[for="dob"]+.d-flex select {
        width: 100% !important;
    }

}