/*--------------------------------------------------------------
# Contact Section Styles
--------------------------------------------------------------*/

/* Contact Information Cards */
.contact .info-item {
    background: color-mix(in srgb, var(--default-color), transparent 96%);
    padding: 40px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.contact .info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact .info-item i {
    font-size: 38px;
    line-height: 0;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.contact .info-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0 10px 0;
    color: var(--heading-color);
}

.contact .info-item p {
    padding: 0;
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 0;
    color: var(--default-color);
}

/* Contact Form Styles */
.contact .contact-form {
    background: color-mix(in srgb, var(--default-color), transparent 96%);
    padding: 30px;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact .contact-form.success-submitted {
    background: color-mix(in srgb, #28a745, transparent 95%);
    box-shadow: 0 5px 25px rgba(40, 167, 69, 0.2);
    transform: scale(1.02);
}

.contact .contact-form input[type="text"],
.contact .contact-form input[type="email"],
.contact .contact-form input[type="tel"],
.contact .contact-form textarea {
    font-size: 14px;
    padding: 12px 15px;
    box-shadow: none;
    border-radius: 6px;
    color: var(--default-color);
    background-color: color-mix(in srgb, var(--background-color), transparent 50%);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.contact .contact-form input[type="text"]:focus,
.contact .contact-form input[type="email"]:focus,
.contact .contact-form input[type="tel"]:focus,
.contact .contact-form textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 85%);
    outline: none;
}

.contact .contact-form input[type="text"]::placeholder,
.contact .contact-form input[type="email"]::placeholder,
.contact .contact-form input[type="tel"]::placeholder,
.contact .contact-form textarea::placeholder {
    color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact .contact-form button[type="submit"] {
    background: var(--secondary-accent);
    color: var(--contrast-color);
    border: 0;
    padding: 12px 30px;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.contact .contact-form button[type="submit"]:hover {
    background: color-mix(in srgb, var(--secondary-accent), transparent 15%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.contact .contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form Messages */
.contact-form .error-message {
    display: none;
    background: #dc3545;
    color: #ffffff;
    text-align: left;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-weight: 500;
    border-radius: 6px;
    border-left: 4px solid #a71e2a;
    animation: slideIn 0.3s ease;
}

/* Bootstrap Alert Styling */
.contact-form .alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: 500;
    animation: slideIn 0.5s ease;
}

.contact-form .alert-success {
    background: #28a745;
    color: #ffffff;
    border-left: 4px solid #1e7e34;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.contact-form .alert-danger {
    background: #dc3545;
    color: #ffffff;
    border-left: 4px solid #a71e2a;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.contact-form .sent-message,
.php-email-form .sent-message {
    display: none !important;
    color: #ffffff;
    background: #28a745;
    text-align: center;
    padding: 20px 25px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    border-left: 4px solid #1e7e34;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: slideIn 0.5s ease, pulse 2s infinite;
    position: relative;
    z-index: 1000;
}

.contact-form .sent-message.show,
.php-email-form .sent-message.show {
    display: block !important;
}

.contact-form .loading {
    display: none;
    background: color-mix(in srgb, var(--surface-color), transparent 10%);
    text-align: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    color: var(--default-color);
    font-weight: 500;
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 70%);
}

.contact-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin: 0 10px -4px 0;
    border: 2px solid var(--accent-color);
    border-top-color: transparent;
    animation: contact-form-loading 1s linear infinite;
}

/* Map Section */
.map {
    margin-top: 40px;
}

.map iframe {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes contact-form-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); }
}

/* Toast Notification System */
.toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;
    max-width: 400px !important;
    pointer-events: none !important;
}

.toast {
    background: #28a745 !important;
    color: white !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    /* animation: toastSlideIn 0.3s ease-out !important; */
    border-left: 4px solid #1e7e34 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: relative !important;
    width: 100% !important;
    min-height: 50px !important;
}

.toast.success {
    background: #28a745;
    border-left-color: #1e7e34;
}

.toast.error {
    background: #dc3545;
    border-left-color: #a71e2a;
}

.toast-message {
    flex: 1;
    margin-right: 10px;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.toast-close:hover {
    opacity: 1;
}

.toast.removing {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* Responsive Design */
@media (max-width: 767.98px) {
    .contact .info-item {
        text-align: center;
        padding: 30px 20px;
    }
    
    .contact .contact-form {
        padding: 20px;
        margin-top: 30px;
    }
    
    .contact .contact-form button[type="submit"] {
        width: 100%;
        padding: 15px 30px;
    }
}

/* Legacy Support for existing classes */
.contact .php-email-form {
    background: color-mix(in srgb, var(--default-color), transparent 96%);
    padding: 30px;
    height: 100%;
}

.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form textarea {
    font-size: 14px;
    padding: 10px 15px;
    box-shadow: none;
    border-radius: 0;
    color: var(--default-color);
    background-color: color-mix(in srgb, var(--background-color), transparent 50%);
    border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type="text"]:focus,
.contact .php-email-form input[type="email"]:focus,
.contact .php-email-form textarea:focus {
    border-color: var(--accent-color);
}

.contact .php-email-form input[type="text"]::placeholder,
.contact .php-email-form input[type="email"]::placeholder,
.contact .php-email-form textarea::placeholder {
    color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type="submit"] {
    background: var(--secondary-accent);
    color: var(--contrast-color);
    border: 0;
    padding: 10px 30px;
    transition: 0.4s;
    border-radius: 4px;
}

.contact .php-email-form button[type="submit"]:hover {
    background: color-mix(in srgb, var(--secondary-accent), transparent 20%);
}