/* GSDM Contact Form Styles */

.gsdm-floating-container {
    position: fixed;
    bottom: 70px;
    right: 30px;
    z-index: 2147483647;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.gsdm-inline-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.gsdm-float-btn {
    background: #ed2224;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0 20px;
    height: 60px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: gsdm-pulse 2s infinite;
}

@keyframes gsdm-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(237, 34, 36, 0.7);
    }
    70% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 15px rgba(237, 34, 36, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(237, 34, 36, 0);
    }
}

.gsdm-float-btn:hover {
    transform: scale(1.05);
    background: #c81d1f;
    animation: none; /* optional: pause pulse on hover */
}

.gsdm-form-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 14px 18px;
    width: 360px;
    box-sizing: border-box;
}

/* Floating Modal Hidden State */
.gsdm-form-box.gsdm-modal {
    position: absolute;
    bottom: 72px;
    right: 0;
    max-height: calc(100vh - 95px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Floating Modal Active State */
.gsdm-form-box.gsdm-modal.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.gsdm-inline-container .gsdm-form-box {
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
}

.gsdm-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
}

.gsdm-close-btn:hover {
    color: #000;
}

.gsdm-form-header h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #333;
    line-height: 1.3;
    padding-right: 20px;
}

.gsdm-form-row {
    display: flex;
    gap: 8px;
}

.gsdm-form-row .gsdm-form-group {
    flex: 1;
    min-width: 0;
    margin-bottom: 6px;
}

.gsdm-form-group {
    margin-bottom: 6px;
}

.gsdm-form-group label {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.gsdm-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.gsdm-radio-group label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    font-size: 12px;
    color: #555;
    cursor: pointer;
}
.gsdm-radio-group input[type="radio"] {
    margin-right: 4px;
    margin-top: 0;
    margin-bottom: 0;
}

.gsdm-form-group input[type="text"],
.gsdm-form-group input[type="email"],
.gsdm-form-group input[type="tel"],
.gsdm-form-group select,
.gsdm-form-group textarea {
    width: 100%;
    max-width: 100%;
    padding: 7px 9px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    background: #fafafa;
}

.gsdm-error-text {
    color: #dc3545;
    font-size: 12px;
    margin: 4px 0;
}

.gsdm-wrapper .gsdm-form-group select {
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #fafafa !important;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px top 50% !important;
    background-size: 10px auto !important;
    height: 40px !important;
    min-height: 40px !important;
    line-height: normal !important;
    padding: 0 30px 0 10px !important;
    margin: 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    color: #333 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.gsdm-form-group input:focus,
.gsdm-form-group select:focus,
.gsdm-form-group textarea:focus {
    outline: none;
    border-color: #ed2224;
    background: #fff;
}

.gsdm-submit-btn {
    width: 100%;
    padding: 10px;
    background: #ed2224;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gsdm-submit-btn:hover {
    background: #c81d1f;
}

.gsdm-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.gsdm-recaptcha-container {
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .gsdm-floating-container {
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .gsdm-form-box {
        width: calc(100vw - 30px);
        max-width: 360px;
        min-width: 290px;
        padding: 12px 14px;
    }

    .gsdm-form-header {
        display: none;
    }

    .gsdm-form-box.gsdm-modal {
        max-height: calc(100vh - 85px);
    }
}

.gsdm-form-message {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.gsdm-form-message.success {
    color: #28a745;
}

.gsdm-form-message.error {
    color: #dc3545;
}