
/* Error notification styles */
.error-notification {
    position: fixed;
    top: 10%;
    right: 20%;
    background: #dc3545;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.error-notification.show {
    transform: translateX(0);
}

/* Success notification styles */
.success-notification {
    position: fixed;
    top: 14%;
    right: 22%;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.success-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content svg {
    flex-shrink: 0;
}

/* Field error styles */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.invalid-feedback::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 12px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #dc3545;
}

/* Form group positioning for error messages */
.form-group {
    position: relative;
    margin-bottom: 1rem;
    min-height: 60px; /* Ensure consistent height */
}

/* Ensure form container doesn't shift */
.d-flex.flex-column.gap-4 {
    position: relative;
}

/* Error message container */
.invalid-feedback {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* International Telephone Input Styling */
.iti {
    width: 100%;
}

.iti__country-list {
    z-index: 1050;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.iti__country {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.iti__country:hover {
    background-color: #f8f9fa;
}

.iti__country.iti__highlight {
    background-color: #007bff;
    color: white;
}

.iti__flag {
    margin-right: 8px;
}

.iti__selected-flag {
    background-color: transparent;
    border: none;
    padding: 0 8px;
}

.iti__selected-flag:hover {
    background-color: #f8f9fa;
}

.iti__arrow {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #666;
    margin-left: 6px;
}

/* Phone input field styling */
#phoneNumber {
    padding-left: 60px;
    width: 100%;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* InputMask styling */
#phoneNumber[data-inputmask] {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Placeholder styling for masked input */
#phoneNumber::placeholder {
    color: #999;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Error message positioning for phone input */
.iti + .invalid-feedback {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.iti + .invalid-feedback::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 12px;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid #dc3545;
}

/* Form label styling */
.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    /* color: #333; */
    font-size: 14px;
}

/* Required field indicator */
.form-label::after {
    content: " *";
    color: #dc3545;
}
@media only screen and (max-width: 767px) {
  /* Your mobile-only styles here */
  .error-notification{
    position: fixed;
    top: 78%;
    right: 52%;
    background: #dc3545;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 350px;
  }
}