/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(26, 39, 103, 0.85); /* Semi-transparent primary color */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
}

.floating-contact-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
    background: rgba(26, 39, 103, 0.95);
}

.floating-contact-icon {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1); /* Make it white */
    transition: transform 0.3s ease;
}

.floating-contact-btn:hover .floating-contact-icon {
    transform: rotate(15deg);
}

/* Modal Overlay */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 20, 0.4); /* Darker, clearer overlay */
    z-index: 10000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(8px); /* Stronger blur for the background */
}

.contact-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Content - Glassmorphism */
.contact-modal-content {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    padding: 50px;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    
    /* Hide Scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.contact-modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.contact-modal-overlay.active .contact-modal-content {
    transform: scale(1) translateY(0);
}

/* Close Button */
.contact-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
    outline: none;
    transition: all 0.2s ease;
    z-index: 10;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.contact-modal-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Form Styling */
.contact-modal-content .contact-input-form-block {
    width: 100%;
}

.contact-modal-content h2 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 600;
    background: linear-gradient(135deg, #1a2767 0%, #3a4b9f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Input Fields - Modern & Minimal */
.contact-modal-content .input-field-block {
    margin-bottom: 20px;
}

.contact-modal-content .input-field {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    font-size: 15px;
    color: #1a2767;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    backdrop-filter: blur(5px);
}

.contact-modal-content .input-field:focus {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--color--primary-color, #1a2767);
    box-shadow: 0 4px 15px rgba(26, 39, 103, 0.1);
    outline: none;
}

.contact-modal-content .input-field::placeholder {
    color: #888;
}

.contact-modal-content select.input-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23333'%3E%3Cpath d='M6 8.825L1.175 4 2.238 2.938 6 6.712 9.762 2.938 10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.contact-modal-content textarea.input-field {
    min-height: 120px;
    resize: vertical;
}

/* Submit Button */
.contact-modal-content .primary-button {
    width: 100%;
    justify-content: center;
    padding: 16px 30px;
    background: linear-gradient(135deg, #1a2767 0%, #2a3b8f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 39, 103, 0.3);
    margin-top: 10px;
}

.contact-modal-content .primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 39, 103, 0.4);
    background: linear-gradient(135deg, #2a3b8f 0%, #1a2767 100%);
}

.contact-modal-content .primary-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

