/* ============================================
   Inquiry Modal Styles
   ============================================ */

/* Fixed Inquire Now Button - Bottom Left with Floating Animation */
.inquire-now-fixed {
    position: fixed;
    left: 30px;
    bottom: 120px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.inquire-now-fixed.visible {
    opacity: 1;
    visibility: visible;
    animation: float 3s ease-in-out infinite;
}

.btn-inquire-now {
    background: linear-gradient(135deg, #e60012 0%, #c40010 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(230, 0, 18, 0.35);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-inquire-now:hover {
    background: linear-gradient(135deg, #ff0015 0%, #e60012 100%);
    box-shadow: 0 6px 25px rgba(230, 0, 18, 0.5);
    transform: translateY(-3px);
}

.btn-inquire-now .inquire-text {
    display: inline-block;
}

/* Modal Overlay */
.inquiry-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.inquiry-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.inquiry-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* Modal Content */
.inquiry-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 10001;
}

/* Modal Close Button */
.inquiry-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.inquiry-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.inquiry-modal-close i {
    font-size: 18px;
    color: #666;
}

/* Modal Header */
.inquiry-modal-header {
    background: linear-gradient(135deg, #3B7DC3 0%, #2a5a8f 100%);
    color: white;
    padding: 40px 30px 30px;
    border-radius: 12px 12px 0 0;
}

.inquiry-modal-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.inquiry-modal-header p {
    font-size: 15px;
    opacity: 0.95;
    margin: 0;
}

/* Inquiry Form */
.inquiry-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group .required {
    color: #e60012;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3B7DC3;
    box-shadow: 0 0 0 3px rgba(59, 125, 195, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Actions */
.form-actions {
    margin-top: 25px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #F5A623 0%, #E09612 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #ffb733 0%, #F5A623 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.btn-submit i {
    font-size: 18px;
}

/* Form Message */
.form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   Back to Top Button Styles
   ============================================ */

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top button {
    background: linear-gradient(135deg, #e60012 0%, #c40010 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(230, 0, 18, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top button:hover {
    background: linear-gradient(135deg, #ff0015 0%, #e60012 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(230, 0, 18, 0.6);
}

.back-to-top button i {
    font-size: 20px;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ============================================
   Mobile Responsive
   ============================================ */

@media (max-width: 768px) {

    /* Inquire Now Button - Mobile */
    .inquire-now-fixed {
        left: 15px;
        bottom: 15px;
    }

    .btn-inquire-now {
        padding: 14px 28px;
        font-size: 16px;
        letter-spacing: 0.3px;
    }

    /* Modal Content - Mobile */
    .inquiry-modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 8px;
    }

    .inquiry-modal-header {
        padding: 30px 20px 20px;
    }

    .inquiry-modal-header h3 {
        font-size: 22px;
    }

    .inquiry-modal-header p {
        font-size: 14px;
    }

    .inquiry-form {
        padding: 20px;
    }

    /* Form Row - Stack on Mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px;
        /* Prevent zoom on iOS */
    }

    /* Back to Top - Mobile */
    .back-to-top {
        right: 15px;
        bottom: 15px;
    }

    .back-to-top button {
        width: 45px;
        height: 45px;
    }

    .back-to-top button i {
        font-size: 18px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .inquiry-modal-content {
        max-width: 550px;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}