﻿/* ==================== ROOT COLORS (ensure these exist) ==================== */
:root {
    --primary: #0d6efd;
    --navy: #012970;
    --dark-blue: #012970;
    --white: #ffffff;
    --text: #444444;
    --light-gray: #f8f9fa;
}

/* ==================== GLOBAL TEXT WRAPPING (PREVENT OVERFLOW) ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Apply to ALL text elements */
h1, h2, h3, h4, h5, h6,
p, span, label, small, .lead,
.btn, .toast, .card-title, .card-text,
.form-label, .confirmation-title, .confirmation-text {
    word-wrap: break-word; /* Legacy support */
    overflow-wrap: break-word; /* Modern standard */
    hyphens: auto; /* Optional: auto-hyphenate long words */
    line-height: 1.5;
}

/* Single-line truncation with ellipsis */
.text-ellipsis,
.toast-title,
.card-title,
.btn,
.confirmation-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Multi-line truncation (e.g. toast message, card desc) */
.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== TOAST STYLES ==================== */
.toast {
    min-width: 280px;
    max-width: 100%;
    border-radius: 0.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    font-size: 0.9rem;
}

.toast-header {
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.toast-body {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #fff;
}

/* Color Variations */
.toast-info {
    background-color: #0d6efd;
    color: #fff;
}

.toast-success {
    background-color: #198754;
    color: #fff;
}

.toast-warning {
    background-color: #ffc107;
    color: #212529;
}

.toast-error,
.toast-danger {
    background-color: #dc3545;
    color: #fff;
}

/* Fade Animation */
.toast.fade {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .toast.fade.show {
        opacity: 1;
    }

/* ==================== CONFIRMATION CARD ==================== */
.confirmation-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .confirmation-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

.confirmation-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.confirmation-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}

.confirmation-text {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-back {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

    .btn-back:hover,
    .btn-back:focus {
        background-color: var(--navy);
        color:white !important;
        transform: translateY(-2px);
        outline: none;
    }

/* ==================== FORM & LAYOUT FIXES ==================== */
.form-label,
.lead,
p,
small {
    margin-bottom: 0.5rem;
}

/* Mobile: Stack form rows */
@media (max Proteins-width: 576px) {
    .d-flex.flex-md-row {
        flex-direction: column !important;
    }

    .me-md-3 {
        margin-right: 0 !important;
        margin-bottom: 0.75rem;
    }

    .confirmation-card {
        padding: 1.5rem;
    }

    .confirmation-icon {
        font-size: 2.5rem;
    }

    .confirmation-title {
        font-size: 1.3rem;
    }

    .confirmation-text {
        font-size: 0.9rem;
    }
}

/* ==================== GOOGLE MAP ==================== */
/*.google-map-iframe {
    width: 100%;
    border: 0;
    border-radius: 0.75rem;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: height 0.3s ease;
}*/

/* Responsive Heights */
/*@media (max-width: 992px) {
    .google-map-iframe {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .google-map-iframe {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .google-map-iframe {
        height: 250px;
    }
}*/
