﻿/* Custom styles to complement Bootstrap */
body {
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

.logo-text {
    color: #2c3e50;
    font-weight: bold;
}

    .logo-text span {
        color: #8e44ad;
    }

/* Top bar styles */
.top-bar {
    background-color: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

    .top-bar p {
        font-size: 14px;
        color: #6c757d;
    }

    .top-bar a {
        color: #8e44ad;
        text-decoration: none;
    }

        .top-bar a:hover {
            text-decoration: underline;
        }

.social-media a {
    width: 32px;
    height: 32px;
    margin-right: 5px;
    background: rgba(142, 68, 173, 0.1);
    border-radius: 50%;
    color: #8e44ad;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .social-media a:hover {
        background: #8e44ad;
        color: white;
    }

.social-icon {
    width: 32px;
    height: 32px;
    background: rgba(142, 68, 173, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}

    .social-icon:hover {
        background: #8e44ad;
        color: white;
    }

.navbar {
    background-color: #cabccf !important;
    box-shadow: 0 2px 10px rgba(142, 68, 173, 0.2);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 0.5px solid #8e44ad;
}

.navbar-brand {
    font-size: 0.8rem;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

    .navbar-brand img {
        height: 40px;
        width: 60px;
        margin-right: 10px;
        transition: transform 0.3s ease;
    }

    .navbar-brand:hover img {
        transform: scale(1.1);
    }

    .navbar-brand span {
        color: #8e44ad;
    }

.nav-link {
    color: #2c3e50 !important;
    font-weight: 500;
    transition: color 0.3s;
}

    .nav-link:hover, .nav-link.active {
        color: #8e44ad !important;
    }

    .nav-link.active {
        font-weight: 700;
        border-bottom: 2px solid #8e44ad;
    }

.form-control:focus {
    border-color: #8e44ad;
    box-shadow: 0 0 0 0.25rem rgba(142, 68, 173, 0.25);
}

.btn-outline-primary {
    color: #8e44ad;
    border-color: #8e44ad;
}

    .btn-outline-primary:hover {
        background-color: #8e44ad;
        border-color: #8e44ad;
        color: white;
    }

.register-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(142, 68, 173, 0.2);
    max-width: 800px;
    margin: 40px auto;
    position: relative;
    z-index: 10;
}

.register-heading {
    color: #8e44ad;
}

.btn-primary {
    background-color: #8e44ad;
    border-color: #8e44ad;
}

    .btn-primary:hover {
        background-color: #6c3483;
        border-color: #6c3483;
    }

footer {
    background: #6c3483;
    color: white;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

    footer::before {
        content: '';
        position: absolute;
        top: -50px;
        left: 0;
        width: 100%;
        height: 50px;
        background-size: cover;
        animation: waveAnimation 15s linear infinite;
    }

@keyframes waveAnimation {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 1200px;
    }
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

    .footer-info h3::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, #9b59b6, #8e44ad);
    }

.footer-info p {
    margin-bottom: 0.5rem;
}

.footer-info i {
    margin-right: 10px;
    color: #9b59b6;
}

.map-container {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.social-links {
    display: flex;
    margin-top: 40px;
}

    .social-links a {
        width: 50px;
        height: 50px;
        margin: 0 1rem 0 0;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-size: 20px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            transform: scale(1.1);
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
        }

        .social-links a.facebook {
            background-color: #3b5998;
        }

        .social-links a.twitter {
            background-color: #1da1f2;
        }

        .social-links a.instagram {
            background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        }

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    background: #4a235a;
}


.map-container {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
}

.animated-image {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.7;
    z-index: 0;
}

    .animated-image.left {
        left: 5%;
        top: 15%;
        animation: floatLeft 8s ease-in-out infinite;
    }

    .animated-image.right {
        right: 5%;
        top: 15%;
        animation: floatRight 8s ease-in-out infinite;
    }

    .animated-image.left2 {
        left: 10%;
        bottom: 15%;
        animation: floatLeft 7s ease-in-out infinite 1s;
    }

    .animated-image.right2 {
        right: 10%;
        bottom: 15%;
        animation: floatRight 7s ease-in-out infinite 1s;
    }

@keyframes floatLeft {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes floatRight {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(-5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* For mobile devices */


/* Form validation styles */
.form-control.is-invalid:focus,
.form-control.is-valid:focus {
    box-shadow: none;
}

.validation-icon {
    position: absolute;
    right: 25px;
    top: 40px;
    visibility: hidden;
}

.form-group.success .validation-icon.success {
    color: #198754;
    visibility: visible;
}

.form-group.error .validation-icon.error {
    color: #dc3545;
    visibility: visible;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    padding: 6px 10px; /* smaller padding */
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px; /* smaller font */
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px; /* reduce gap between icon and text */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: background 0.3s ease;
}

    .whatsapp-float:hover {
        background-color: #1ebe5d;
    }

    .whatsapp-float img {
        width: 20px; /* smaller icon */
        height: 20px;
        filter: invert(1);
    }


/* Enhanced Form validation styles */
.form-control.is-invalid:focus,
.form-control.is-valid:focus {
    box-shadow: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    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 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);
}

.form-control.is-valid {
    border-color: #198754;
    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.73.94-.94 1.96 1.96 2.68-2.68.94.94-3.62 3.62z'/%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);
}

.validation-icon {
    position: absolute;
    right: 25px;
    top: 40px;
    visibility: hidden;
    font-size: 18px;
}

.form-group.success .validation-icon.success {
    color: #198754;
    visibility: visible;
}

.form-group.error .validation-icon.error {
    color: #dc3545;
    visibility: visible;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.form-group.error .invalid-feedback {
    display: block;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #198754;
}

.form-group.success .valid-feedback {
    display: block;
}

/* Radio button validation styling */
.form-group.error input[type="radio"] {
    border-color: #dc3545;
}

.form-group.error .form-check-label {
    color: #dc3545;
}

.form-group.success input[type="radio"] {
    border-color: #198754;
}

.form-group.success .form-check-label {
    color: #198754;
}

/* Textarea validation */
textarea.form-control.is-invalid {
    background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
}

textarea.form-control.is-valid {
    background-position: top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem);
