﻿.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.125rem;
    z-index: 4;
    transition: color var(--transition-duration);
}

.form-control:focus ~ .input-icon,
.form-select:focus ~ .input-icon {
    color: var(--primary-color);
}




/* Verification Elements */
.verification-button {
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0 !important;
    font-weight: 500;
    transition: all var(--transition-duration);
    z-index: 5;
}

    .verification-button:disabled {
        /*background-color: transparent;*/
        opacity: 0.6;
    }

/*.verified-badge {
    right: 0;
    top: 0;
    height: 2.75rem;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    color: #198754;
    background-color: rgba(25, 135, 84, 0.1);
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
    font-weight: 500;
    animation: fadeIn var(--transition-duration);
    z-index: 5;
}*/

    .verified-badge i {
        margin-right: 0.5rem;
        font-size: 1.125rem;
    }

.change-option {
    text-align: right;
    margin-top: 0.5rem;
    animation: fadeIn var(--transition-duration);
}

    .change-option .btn-link {
        color: var(--primary-color);
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        padding: 0;
    }

        .change-option .btn-link:hover {
            text-decoration: underline;
        }

/* OTP Section */
.otp-section {
    background-color: var(--background-color);
    padding: 1.5rem;
    border-radius: var(--bs-border-radius);
    margin: 0.5rem 0 1.5rem;
    animation: slideDown var(--transition-duration);
}

.otp-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.otp-input-group {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.otp-input {
    width: 3rem;
    height: 3rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border: 1.5px solid #ddd;
    border-radius: var(--bs-border-radius);
    background-color: #fff;
    transition: all var(--transition-duration);
    color:black !important;
}

    .otp-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
        outline: none;
    }

    .otp-input.invalid {
        border-color: var(--error-color);
        animation: shake 0.4s ease-in-out;
    }

.resend-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resend-timer {
    color: #6c757d;
    font-size: 0.875rem;
}






/* Loading Animation */
.loader {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .modal-body {
        padding: 1rem;
    }

    .otp-input {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .verification-button {
        padding: 0 1rem;
    }
}

/* Custom Select Styling */
.form-select {
    background-position: right 1.5rem center;
    cursor: pointer;
}

/* Invalid State Styling */
.custom-input.invalid {
    border-color: var(--error-color);
    background-color: rgba(220, 53, 69, 0.05);
}

    .custom-input.invalid:focus {
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
    }

/* Transition Styles */
.form-control:disabled,
.form-select:disabled {    
    cursor: not-allowed;
}


.validation-message {
    font-size: 12px;
    margin-top: 4px;
    transition: all 0.3s ease;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

    .validation-message.show {
        opacity: 1;
        height: auto;
        margin-top: 4px;
    }

    .validation-message.valid {
        color: #198754;
    }

    .validation-message.invalid {
        color: #dc3545;
    }

.form-control.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}


.bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    /*transform: translateY(100%);*/
    z-index: 1060;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    width: 100%;
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

    .bottom-sheet.show {
        transform: translateY(0);
        pointer-events: auto;
    }

.bottom-sheet-content {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.notification-message {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.notification-icon {
    font-size: 20px;
}

/* Notification types */
.bottom-sheet.success {
    background-color: #E8F5E9;
}

    .bottom-sheet.success .notification-icon::before {
        content: '\f00c';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: #2E7D32;
    }

.bottom-sheet.error {
    background-color: #FFEBEE;
}

    .bottom-sheet.error .notification-icon::before {
        content: '\f071';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: #C62828;
    }

.bottom-sheet.info {
    background-color: #E3F2FD;
}

    .bottom-sheet.info .notification-icon::before {
        content: '\f05a';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        color: #1565C0;
    }

.bottom-sheet .btn-close {
    padding: 8px;
    margin: -8px;
    opacity: 0.75;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

#confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.success-content {
    position: relative;
    z-index: 1;
}

#successModal .modal-body {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.success-icon {
    font-size: 64px;
    color: #198754;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.send-button-hide {
    display: none;
}

/* Modal responsiveness fixes */
@media (max-width: 768px) {

    .send-button-hide{
        display:none;
    }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-content {
        border-radius: 12px;
    }

    .otp-input{
        padding:0 !important;
        font-weight:bold;
        color:black;
    }

    .modal-header {
        padding: 0.75rem;
    }

        .modal-header .modal-title {
            font-size: 1.1rem;
        }

            .modal-header .modal-title img {
                width: 100px;
                height: 42px;
            }

    .modal-body {
        padding: 1rem;
    }

    /* Input group responsiveness */
    .input-group {
        flex-wrap: wrap;
    }

    .verification-button {        
        border-bottom-right-radius: 8px !important;
        border-top-right-radius: 8px !important;
    }

    /* OTP inputs responsiveness */
    .otp-input-group {
        gap: 0.5rem;
    }

    .otp-input {
        width: calc(16.666% - 0.5rem);
        height: 40px;
        font-size: 1rem;
    }

    /* Form elements spacing */
    .mb-3 {
        margin-bottom: 1rem !important;
    }

    /* Bottom action buttons */
    .register-btn {
        width: 100%;
        padding: 0.75rem;
    }

    /* Verification badge positioning */
    
}

/* Additional fixes for extra small devices */
@media (max-width: 375px) {
    .modal-header .modal-title {
        font-size: 1rem;
    }

        .modal-header .modal-title img {
            width: 80px;
            height: 34px;
        }

    .otp-input {
        height: 36px;
        font-size: 0.9rem;
    }

    .form-label {
        font-size: 0.9rem;
    }
}

.form-label{
    color:black !important;
}




.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

    .form-floating > .form-control:focus ~ label,
    .form-floating > .form-control:not(:placeholder-shown) ~ label {
        opacity: .65;
        transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
    }

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem 0.75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
}






.material-select-group {
    position: relative;
}

    .material-select-group label {
        position: absolute;
        background: transparent;
        pointer-events: none;
        transform-origin: 0 0;
        transition: all 0.2s ease;
        color: #6c757d;
        font-size: 1rem;
        left: 1rem;
        top: 0.75rem;
    }

    .material-select-group select:focus + label,
    .material-select-group select:valid + label {
        transform: translateY(-1.25rem) scale(0.85);
        background: white;
        padding: 0 0.5rem;
        color: var(--primary-color);
    }

.material-select,
.material-input {
    border: 1px solid rgba(18, 21, 24, 0.1);
    border-radius: 12px !important;
    background: transparent;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
    height: calc(3.5rem + calc(var(--bs-border-width) * 2));
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.material-select {
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    width:100%
}

    .material-select option {
        color: #212529;
        padding: 0.5rem;
    }

    


.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #ebf9f1;
    color: #00a650;
    font-size: 0.875rem;
    border-radius: 4px;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    border-top-right-radius:0.5rem;
    border-bottom-right-radius:0.5rem;
    z-index:1060;
}

    .verified-badge:before {
        content: "✓";
        margin-right: 4px;
        font-size: 16px;
        position: relative;
        top: -1px;
    }

.border-right-0 {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.modal .modal-content .modal-header{
    border-bottom: 0 !important;
}


.form-floating textarea {
    height: auto !important;
    min-height: auto !important;
}
