/* Fixed wrapper on right side */
.sfh-wrapper {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: center;
}

/* Fixed button */
.sfh-button {
    background: #0073aa;
    color: white;
    transform: rotate(-90deg);
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    margin: 0 -48px 0 0;
    border-radius: 15px 15px 0 0;
    transition: background 0.3s ease;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    line-height: 1.2;
}

.sfh-button span {
    display: block;
}

.sfh-button:hover {
    background: #005177;
}

/* Sliding form */
.sfh-form {
    position: absolute;
    right: 100%;
    background: white;
    padding: 25px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    border-radius: 5px 0 0 5px;
    width: 320px;
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Show form on hover over button OR form itself */
.sfh-wrapper:hover .sfh-form {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Form styles */
.sfh-form h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.sfh-form input,
.sfh-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.sfh-form input:focus,
.sfh-form select:focus {
    outline: none;
    border-color: #0073aa;
}

.sfh-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.sfh-form button[type="submit"]:hover {
    background: #005177;
}

.sfh-form button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Response messages */
.sfh-response {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: none;
}

.sfh-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.sfh-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sfh-form {
        width: 280px;
    }
    
    .sfh-button {
        padding: 12px 15px;
        font-size: 14px;
    }
}