﻿/* Clean Contact Form Styling  */

#contactForm {
    background: #F9F9F9;
    padding: 25px;
    margin: 40px auto;
    border-radius: 6px;
}

    #contactForm fieldset {
        border: none;
        margin: 0 0 15px;
        padding: 0;
    }

    #contactForm input[type="text"],
    #contactForm input[type="email"],
    #contactForm input[type="tel"],
    #contactForm input[type="url"],
    #contactForm textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #CCC;
        border-radius: 4px;
        background: #FFF;
        margin-bottom: 12px;
        box-sizing: border-box;
        font-size: 16px;
    }

    #contactForm textarea {
        min-height: 120px;
        resize: vertical;
    }

    #contactForm button[type="submit"] {
        width: 100%;
        padding: 12px;
        background: #0CF;
        color: #FFF;
        border: none;
        border-radius: 4px;
        font-size: 16px;
        cursor: pointer;
    }

        #contactForm button[type="submit"]:hover {
            background: #09C;
        }

/*  Toast Messages  */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    margin: 15% auto;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.toast {
    visibility: hidden;
    min-width: 300px;
    background-color: #4caf50;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 18px 24px;
    position: fixed;
    z-index: 9999; /* Centering */
    left: 50%;
    top: 40%; /* adjust this to move it higher/lower */
    transform: translate(-50%, -50%); /* Animation */
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s;
    transition: opacity 0.5s ease, visibility 0.5s, transform 0.5s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-size: 1.1rem;
}

    .toast.show {
        visibility: visible;
        opacity: 1;
    }

.toast-title {
    font-weight: bold;
    margin-bottom: 6px;
}

.toast-body {
    font-size: 0.95rem;
}

/* Error version */
.toast.error {
    background-color: #d9534f; /* bootstrap red */
}