/* Floating Back To Home Button */
.floating-back-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--clr-gold, #D4AF37);
    color: var(--clr-emerald-dark, #001f19);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.floating-back-btn:hover {
    transform: translateY(-5px);
    background-color: #E5C158;
    /* slightly lighter gold */
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: var(--clr-emerald-dark, #001f19);
}

/* Floating Contact Modal */
.floating-contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

.floating-contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.floating-modal-content {
    background-color: var(--clr-emerald, #002d25);
    width: 90%;
    max-width: 280px;
    /* Reduced from 350px */
    border-radius: 8px;
    /* Slightly less rounded */
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 30px -10px rgba(212, 175, 55, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.floating-contact-modal.active .floating-modal-content {
    transform: translateY(0) scale(1);
}

.floating-modal-header {
    background: var(--clr-emerald-dark, #001f19);
    padding: 1rem 0.75rem;
    /* Reduced padding */
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.floating-modal-header h3 {
    color: var(--clr-white, #ffffff);
    margin: 0;
    font-size: 1.1rem;
    /* Reduced font size */
    font-family: var(--font-heading, "Playfair Display", serif);
}

.floating-modal-header p {
    color: var(--clr-gold, #D4AF37);
    margin: 0.25rem 0 0 0;
    /* Reduced margin */
    font-size: 0.75rem;
    /* Reduced font size */
}

.floating-modal-close {
    margin-top: 0.75rem;
    /* Reduced margin */
    background: transparent;
    border: 1px solid var(--clr-gold, #D4AF37);
    border-radius: 4px;
    color: var(--clr-gold, #D4AF37);
    font-size: 0.8rem;
    /* Reduced font size */
    font-family: var(--font-body, "Inter", sans-serif);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.3rem 0.6rem;
    /* Reduced padding */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-modal-close:hover {
    background: var(--clr-gold, #D4AF37);
    color: var(--clr-emerald-dark, #001f19);
}

.floating-modal-body {
    padding: 1rem;
    /* Reduced padding */
    background: var(--clr-emerald-dark, #001f19);
}

.floating-modal-body .form-group {
    margin-bottom: 0.75rem;
    /* Reduced margin */
}

.floating-modal-body .form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--clr-gold, #D4AF37);
    font-size: 0.75rem;
    /* Reduced font size */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-modal-body .form-group input,
.floating-modal-body .form-group textarea {
    width: 100%;
    padding: 0.5rem 0;
    /* Adjusted padding for bottom-border styling */
    border: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
    /* Gold bottom border */
    border-radius: 0;
    font-family: var(--font-body, "Inter", sans-serif);
    font-size: 0.85rem;
    background-color: transparent !important;
    /* Forces background transparency */
    color: var(--clr-white, #ffffff);
    /* Bright white text against dark background */
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.floating-modal-body .form-group input::placeholder,
.floating-modal-body .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    /* Subtle white placeholder */
}

.floating-modal-body .form-group input:focus,
.floating-modal-body .form-group textarea:focus {
    outline: none;
    border-color: var(--clr-gold, #D4AF37);
    background-color: #e6f0ed;
    /* light emerald tint */
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.floating-modal-body button {
    background-color: var(--clr-gold, #D4AF37);
    color: var(--clr-emerald-dark, #001f19);
    border: none;
    padding: 0.6rem;
    /* Reduced padding */
    width: 100%;
    font-size: 0.9rem;
    /* Reduced font size */
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.floating-modal-body button:hover {
    background-color: #E5C158;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}