.custom-model-form-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: flex-start;
    gap: 1.5rem;
}

.custom-model-form-container h2 {
    line-height: 5px;
}

.custom-model-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.custom-model-form-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.custom-model-form-first-part {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: flex-start;
    gap: 1rem;
}

.model-name-wrapper,
.instagram-url-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: flex-start;
    gap: 0.5rem;
    color: white;
}

.model-name-wrapper label,
.instagram-url-wrapper label {
    padding-left: 0.5rem;
    font-weight: 500;
    font-size: 14px;
    line-height: 22px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.inline-radio {
    width: 1rem !important;
    display: flex;
    gap: 20px;
}

.inline-radio li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-model-form-first-part input {
    background-color: #29292A;
    padding: 14px;
    width: 100%;
    outline: none;
    border: 1px solid #0000000A;
    border-radius: 1rem;
}

.custom-model-form-second-part {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: flex-start;
    gap: 0.5rem;
}

.custom-model-form-second-part h3 {
    font-weight: 500;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.image-upload-grid-view {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.file-upload-box {
    width: 100%;
    height: 9rem;
    border-radius: 2rem;
    background-color: #FFFFFF0A;
    border: 1px dashed #FFFFFF33;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}

.file-upload-box input {
    display: none;
}

.upload-btn-1,
.upload-btn-2,
.upload-btn-3,
.upload-btn-4 {
    background: #11336c;
    padding: 8px 30px;
    color: #4a79ff;
    border-radius: 40px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

/* Image Preview Styles */
.file-upload-box {
    position: relative;
    overflow: hidden;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    height: 100%;
}

.image-preview-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2rem;
}

.edit-image-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-image-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.edit-image-btn svg {
    width: 16px;
    height: 16px;
}

.custom-model-footer {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;
    margin-top: 2rem;
}

/* Authentication Popup Styles */
.auth-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-popup {
    width: 400px;
    background-color: #121317;
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: inset 0 0 0 0.95px #FFFFFF36;
}

.auth-popup-header {
    font-family: Nunito;
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    text-align: center;
    color: white;
}

.auth-popup-content {
    font-family: Nunito;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    color: white;
    opacity: 0.8;
}

.google-signin-btn {
    padding: 1rem 4rem;
    display: inline-block;
    border-radius: 2rem;
    background-color: #fff;
    color: #000;
    font-family: Nunito;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.5px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform 0.3s ease-in;
}

.google-signin-btn:hover {
    transform: scale(1.05);
}

.close-popup {
    font-family: Nunito;
    font-weight: 600;
    font-size: 14px;
    color: #FFFFFF;
    opacity: 0.7;
    cursor: pointer;
    text-decoration: underline;
}

.close-popup:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .custom-model-form-container h2 {
        text-align: center;
        line-height: 27px;
    }

    .custom-model-form-section {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .custom-model-form-container {
        gap: 1rem;
    }

    .custom-model-form-first-part {
        width: 100%;
    }

    .model-name-wrapper,
    .instagram-url-wrapper {
        width: 100%;
    }

    .custom-model-form-first-part input {
        width: 100%;
        padding: 14px;
    }

    .custom-model-form-second-part {
        width: 100%;
        align-items: center;
    }

    .file-upload-box {
        height: 9rem;
        border-radius: 1rem;
    }

    .file-upload-box span {
        font-size: 12px;
    }

    .upload-btn-1,
    .upload-btn-2,
    .upload-btn-3,
    .upload-btn-4 {
        font-size: 12px;
    }

    .preview-image {
        border-radius: 1rem;
    }

    .custom-model-footer {
        width: 100%;
        gap: 1.5rem;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .custom-model-form-section {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .custom-model-form-first-part,
    .custom-model-form-second-part {
        width: 100%;
        align-items: center;
    }

    .model-name-wrapper,
    .instagram-url-wrapper {
        width: 100%;
    }

    .custom-model-form-first-part input {
        width: 100%;
    }

    .custom-model-footer {
        width: 100%;
        gap: 1.5rem;
        flex-direction: column;
    }
}