/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 100%;
    max-width: 800px;
}

.alert {
    animation: fadeInDown 0.5s ease forwards;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Form */
.contact-form-card {
    border-top: 3px solid #A0785A;
}

.form-control:focus, .form-select:focus {
    border-color: rgba(160, 120, 90, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(160, 120, 90, 0.25);
}

/* Smaller form controls */
.form-control-sm {
    font-size: 0.875rem;
    min-height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
}

.form-floating > .form-control-sm {
    height: calc(2.5rem + 2px);
    line-height: 1.25;
}

.form-floating > label {
    padding: 0.5rem 0.75rem;
}

/* Contact Info Card */
.contact-info-card {
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
    z-index: 0;
}

.contact-info-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-30%, 30%);
    z-index: 0;
}

/* Icon Effects */
.icon-circle, .social-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover .icon-circle, .social-icon-link:hover .social-icon {
    transform: scale(1.1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Header Image */
.contact-image-container {
    overflow: hidden;
    border-radius: 0.25rem;
}

.contact-image-container img {
    transition: transform 0.5s ease;
}

.contact-image-container:hover img {
    transform: scale(1.05);
}

/* Map Container */
.map-container {
    transition: transform 0.3s ease;
}

.map-container:hover {
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .contact-item {
        flex-direction: row;
        align-items: center;
    }
    
    .contact-icon {
        margin-bottom: 0;
    }

    @media (max-width: 576px) {
        .contact-item {
            flex-direction: column;
            align-items: flex-start;
        }
        
        .contact-icon {
            margin-bottom: 0.5rem;
            margin-right: 0;
        }
    }
}

/* Contact Info Styling */
.contact-list {
    display: flex;
    flex-direction: column;
}

.contact-item {
    position: relative;
}

.icon-wrapper {
    flex-shrink: 0;
}

.contact-text {
    flex-grow: 1;
}

/* Ensure text doesn't wrap under icon */
.contact-item .d-flex {
    flex-wrap: nowrap;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .contact-item .d-flex {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .icon-wrapper {
        margin-top: 0.2rem;
    }
}

/* Enhanced Form Styling */
.form-header .header-underline {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #A0785A, #d4b59e);
    border-radius: 2px;
}

.custom-form .form-group {
    margin-bottom: 1rem;
}

.custom-form .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.4rem;
}

.custom-input {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.custom-input:focus {
    border-color: #A0785A;
    box-shadow: 0 0 0 0.2rem rgba(160, 120, 90, 0.2);
    background-color: #fff;
}

.custom-input::placeholder {
    color: #aaa;
    font-size: 0.9rem;
}

.custom-submit-btn {
    background: linear-gradient(to right, #A0785A, #c4966e);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.custom-submit-btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, #8d6547, #A0785A);
    transition: all 0.4s ease;
    z-index: -1;
}

.custom-submit-btn:hover:before {
    width: 100%;
}

.custom-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(160, 120, 90, 0.4);
}

/* Contact Form Card */
.contact-form-card {
    border-radius: 12px;
    overflow: hidden;
    border-top: 4px solid #A0785A;
    background: linear-gradient(to bottom right, #ffffff, #fafafa);
}

/* Input focus animation */
.custom-input:focus {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(160, 120, 90, 0.4);
    }
    70% {
        box-shadow: 0 0 0 5px rgba(160, 120, 90, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(160, 120, 90, 0);
    }
}

/* Decorative elements */
.contact-form-card:before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(160, 120, 90, 0.05);
    z-index: 0;
}

.contact-form-card:after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(160, 120, 90, 0.05);
    z-index: 0;
}

/* Enhanced Map Styling */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(160, 120, 90, 0.2);
  }
  
  .map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  }
  
  .map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
  }
  
  /* Optional: Add a decorative element */
  .map-container::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, #A0785A, #d4b59e);
    border-radius: 0 0 3px 3px;
    z-index: 2;
  }