body {
    box-sizing: border-box;
}
.gradient-bg {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

/* Animasi floating untuk elemen pendidikan */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

.wiggle-animation {
    animation: wiggle 1s ease-in-out;
}

/* Animasi untuk form fields saat focus */
.form-field:focus {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Animasi untuk floating icons */
.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.floating-icon:nth-child(1) {
    top: 10%;
    left: 10%;
    animation: float 4s ease-in-out infinite;
}

.floating-icon:nth-child(2) {
    top: 20%;
    right: 15%;
    animation: float 3s ease-in-out infinite 1s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 5%;
    animation: float 5s ease-in-out infinite 2s;
}

.floating-icon:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation: float 3.5s ease-in-out infinite 0.5s;
}

/* Style untuk logo container */
.logo-container {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid #fecaca;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Autocomplete styles */
.autocomplete-container {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.autocomplete-item:hover, .autocomplete-item.active {
    background-color: #fef2f2;
    color: #dc2626;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Loading spinner */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #dc2626;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success notification */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.success-notification.show {
    transform: translateX(0);
}

.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ef4444;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.error-notification.show {
    transform: translateX(0);
}

/* Hidden iframe untuk Google Forms */
.google-form-iframe {
    position: absolute;
    top: -1000px;
    left: -1000px;
    width: 1px;
    height: 1px;
    border: none;
    opacity: 0;
    pointer-events: none;
}
