html, body {
    height: 100%;
    overflow: hidden;
}

.select2-dropdown-outside .select2-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    margin-top: 10px;
}

.select2-dropdown-outside .select2-dropdown {
    max-height: 200px;
    overflow-y: auto;
}

.registration-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 5vw;
    overflow: auto;
}

.registration-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1050px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding: clamp(15px, 2vw, 25px);
    transition: all 0.3s ease-in-out;
    position: relative;
    gap: 15px 25px;
}

@media (min-width: 768px) {
    .responsive-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

.left-section {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.logo-container {
    max-width: clamp(80px, 20vw, 180px);
    height: auto;
    fill: #7266BA;
}

.promo-image {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

.right-section {
    flex: 1;
    min-width: 320px;
}

.promo-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    text-align: center;
    margin-top: 30px;
}

.form-control, .btn-purple {
    width: 100%;
    height: 45px;
    font-size: 1rem;
    border-radius: 8px;
}

.btn-purple {
    background-color: #7266BA !important;
    border-color: #7266BA !important;
    color: #ffffff !important;
    min-width: 150px;
}

.btn-purple:hover {
    background-color: #7266BA !important;
    border-color: #7266BA !important;
}


.input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-group-text {
    background: transparent;
    border: none;
    position: absolute;
    right: 10px;
}

.tooltip-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -25px;
    width: 24px;
    height: 24px;
    background-color: #6c087a;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
}

@media (max-width: 1024px) {
    html, body {
        overflow: auto;
    }

    .registration-wrapper {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .registration-card {
        flex-direction: column;
        width: 95%;
        text-align: center;
    }

    .left-section, .right-section {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .registration-wrapper {
        padding: 3vw;
    }

    .registration-card {
        width: 100%;
        padding: 15px;
        gap: 15px;
        position: relative;
        top: -30px;
    }

    .btn-purple {
        height: 40px;
        font-size: 0.9rem;
    }

    .promo-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .hex1, .hex2, .hex3, .hex4 {
        max-width: 8vw;
    }
}

.hex1,
.hex2,
.hex3,
.hex4 {
    position: absolute;
    max-width: 10vw;
}

.hex1 {
    top: 15%;
    left: 10%;
}

.hex2 {
    top: 10%;
    right: 15%;
}

.hex3 {
    bottom: 15%;
    left: 20%;
}

.hex4 {
    bottom: 10%;
    right: 10%;
}

@media (max-width: 768px) {
    .hex1, .hex2, .hex3, .hex4 {
        max-width: 8vw;
    }
}

@media (max-width: 768px) {
    .promo-image {
        display: none !important;
    }
}

.logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(5px, 1vw, 15px);
    flex-wrap: wrap;
}


.support-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.support-links a {
    color: #7266BA;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-size: clamp(12px, 1.2vw, 16px);
}

.support-links a i {
    margin-right: 5px;
    font-size: clamp(14px, 1.5vw, 18px);
}

.support-links a:hover {
    color: #5a50a3;
}

.d-none {
    display: none;
}

.input-group {
    align-items: center;
}

.row {
    margin-bottom: 15px;
}

.form-control {
    height: 42px;
}

label {
    font-weight: 600;
    margin-bottom: 5px;
}

.file-upload-box, .file-upload-container {
    width: 100%;
    max-width: 450px;
    height: 250px;
    border: 1px dashed #A0A0A0;
    border-radius: 12px;
    background-color: #F8F8F8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #6C2BD9;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

#filePreview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
}

.upload-placeholder {
    position: absolute;
    width: 100%;
    text-align: center;
}

.upload-text {
    color: #6C2BD9;
    text-decoration: underline;
}

#filePreview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
}


.file-upload-box img {
    object-fit: cover;
    border-radius: 5px;
}

@media (max-width: 575.98px) {
    .file-upload-box {
        max-width: 320px;
        height: 160px;
    }
}

.is-invalid {
    border: 1px solid red;
    background-color: #ffe5e5;
}

@media (max-width: 768px) {
    .row .col-md-6 {
        flex: 100%;
    }
}