/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/
@media (max-width: 991px) {
  #logo img {
    width: 160px;
    height: 48px;
  }
}

.hero_single.version_2 {
  height: 620px;
  background: #faf3cc url(../images/home-bg.jpg) center center no-repeat;
    background-size: auto;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.is-invalid {
  border-color: red;
}

.error-text {
  font-style: italic;
  color: red;
  font-size: 12px;
  margin-top: 3px;
}


.alert {
    position: relative;
    padding: 14px 44px 14px 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    animation: slideIn 0.3s ease-out;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

/* @media (min-width: 768px) {
    body {
        padding: 40px;
        max-width: 1200px;
        margin: 0 auto;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .alert {
        padding: 16px 48px 16px 16px;
        margin-bottom: 20px;
        font-size: 1rem;
    }
} */

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

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Checkbox trick for dismissible functionality */
.alert input[type="checkbox"] {
    display: none;
}

.alert input[type="checkbox"]:checked ~ .alert-content {
    animation: slideOut 0.3s ease-out forwards;
}

.alert:has(input[type="checkbox"]:checked) {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
}

.alert-content {
    display: block;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 4px;
    background: none;
    border: none;
    color: inherit;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .close-btn {
        right: 16px;
        font-size: 24px;
        min-width: 32px;
        min-height: 32px;
    }
}

.close-btn:hover {
    opacity: 0.8;
}

.alert strong {
    font-weight: 600;
    margin-right: 4px;
} 

.loading {
  pointer-events: none;
  opacity: 0.7;
  cursor: not-allowed;
}

.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


