/* Sticky Contact Form Styles */
.scf-container {
    position: fixed;
    top: 20px;
    bottom: 20px;
    right: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
}

.scf-tab {
    background-color: #4653a1;
    color: white;
    padding: 20px 8px;
    cursor: pointer;
    border-radius: 8px 0 0 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: bold;
    font-size: 14px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    user-select: none;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scf-tab:hover {
    background-color: #3a4589;
    transform: translateX(-3px);
}

.scf-form-wrapper {
    position: absolute;
    top: 0;
    right: 100%;
    width: 320px;
    background: white;
    border-radius: 8px 0 0 8px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.scf-form-wrapper.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.scf-form-header {
    background-color: #4653a1;
    color: white;
    padding: 15px 20px;
    border-radius: 8px 0 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scf-form-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.scf-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.scf-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.scf-form {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}

.scf-field {
    margin-bottom: 12px;
}

.scf-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.scf-field input,
.scf-field select,
.scf-field textarea {
    width: 100%;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.scf-field input:focus,
.scf-field select:focus,
.scf-field textarea:focus {
    outline: none;
    border-color: #4653a1;
}

.scf-field textarea {
    resize: vertical;
    min-height: 60px;
}

.scf-field input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
}

.scf-field input[type="file"]:hover {
    border-color: #4653a1;
    background-color: #f0f0f0;
}

.scf-field input[type="file"]:focus {
    border-color: #4653a1;
    background-color: #f0f0f0;
}

.scf-file-help {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.scf-file-field {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.scf-product-fields {
    background-color: #f0f4ff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #d0d7ff;
    margin-bottom: 12px;
}

.scf-product-fields h4 {
    margin: 0 0 10px 0;
    color: #4653a1;
    font-size: 15px;
    font-weight: bold;
    border-bottom: 1px solid #d0d7ff;
    padding-bottom: 6px;
}

.scf-product-fields .scf-field {
    margin-bottom: 8px;
}

.scf-product-fields .scf-field:last-child {
    margin-bottom: 0;
}

/* Two-column layout for related fields */
.scf-field-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.scf-field-row .scf-field {
    flex: 1;
    margin-bottom: 0;
}

.scf-field-row .scf-field label {
    font-size: 13px;
}

.scf-field-half {
    flex: 1;
}

.scf-product-fields input[type="number"],
.scf-product-fields input[type="text"],
.scf-product-fields textarea {
    background-color: white;
}

.scf-product-fields input[type="number"]:focus,
.scf-product-fields input[type="text"]:focus,
.scf-product-fields textarea:focus {
    border-color: #4653a1;
    box-shadow: 0 0 5px rgba(70, 83, 161, 0.3);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .scf-form-wrapper {
        width: 280px;
    }
    
    .scf-field-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .scf-form {
        padding: 12px;
    }
    
    .scf-product-fields {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .scf-form-wrapper {
        width: 250px;
    }
    
    .scf-form {
        padding: 10px;
    }
    
    .scf-field {
        margin-bottom: 10px;
    }
    
    .scf-product-fields .scf-field {
        margin-bottom: 6px;
    }
}

.scf-submit-wrapper {
    text-align: center;
    margin-top: 15px;
}

.scf-submit {
    background-color: #4653a1;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.scf-submit:hover {
    background-color: #3a4589;
}

.scf-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.scf-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    display: none;
}

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

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

/* Mobile responsive */
@media (max-width: 768px) {
    .scf-container {
        top: 10px;
        bottom: 10px;
    }
    
    .scf-form-wrapper {
        width: 280px;
        max-height: calc(100vh - 20px);
    }
    
    .scf-tab {
        padding: 15px 6px;
        font-size: 12px;
        min-height: 100px;
    }
    
    .scf-form {
        padding: 15px;
    }
    
    .scf-field input,
    .scf-field select,
    .scf-field textarea {
        padding: 8px;
        font-size: 13px;
    }
    
    .scf-submit {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .scf-container {
        top: 5px;
        bottom: 5px;
    }
    
    .scf-form-wrapper {
        width: 250px;
        max-height: calc(100vh - 10px);
    }
}