:root {
    --primary-color: #138871; /* สีเขียวกสิกรไทย */
    --primary-dark: #0b6e5a;
    --primary-light: #e5f4f1;
    --secondary-color: #59B235; /* สีเขียวอ่อน */
    --accent-color: #1a9882; /* สีเน้น */
    --light-gray: #f5f7fa;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --white: #ffffff;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --success-color: #28a745;
    --error-color: #e74c3c;
    --text-color: #333333;
    --border-radius: 8px;
    --focus-shadow: 0 0 0 3px rgba(19, 136, 113, 0.25);
    --transition: all 0.3s ease;
}

.sjmy-claim-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Prompt', 'Kanit', 'Sarabun', sans-serif;
    color: var(--text-color);
}

.sjmy-claim-container h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.sjmy-claim-container h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.sjmy-claim-form {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.sjmy-claim-search-group h3,
.sjmy-search-results h3,
.sjmy-claim-reference h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Bank Selection */
.sjmy-bank-selection {
    margin-bottom: 30px;
}

.sjmy-bank-icons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.sjmy-bank-item {
    flex: 1;
    min-width: 160px;
    height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 15px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.sjmy-bank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.sjmy-bank-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: var(--transition);
}

.sjmy-bank-item span {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.sjmy-bank-item.selected {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.sjmy-bank-item.selected:before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.sjmy-bank-item.not-selected img {
    filter: grayscale(100%);
    opacity: 0.6;
}

/* Date and Time Selection */
.sjmy-date-time-selection {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.sjmy-date-field,
.sjmy-time-field {
    flex: 1;
}

.sjmy-date-field label,
.sjmy-time-field label,
.sjmy-amount-field label,
.sjmy-reference-field label,
.sjmy-so-field label,
.sjmy-bi-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
}

.sjmy-input-wrapper {
    position: relative;
}

.sjmy-input-wrapper .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 12px;
    color: var(--dark-gray);
}

.sjmy-date-input,
.sjmy-time-input,
.sjmy-amount-field input,
.sjmy-reference-field input,
.sjmy-so-field input,
.sjmy-bi-field input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
    background-color: var(--white);
}

.sjmy-date-input:focus,
.sjmy-time-input:focus,
.sjmy-amount-field input:focus,
.sjmy-reference-field input:focus,
.sjmy-so-field input:focus,
.sjmy-bi-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--focus-shadow);
}

.sjmy-time-picker-wrapper {
    position: relative;
    padding: 15px 0 5px;
}

.sjmy-time-input-container {
    margin-bottom: 15px;
}

/* Slider styling */
#sjmy-time-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--medium-gray);
    outline: none;
    margin: 15px 0;
}

#sjmy-time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

#sjmy-time-slider::-webkit-slider-thumb:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.sjmy-time-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: var(--dark-gray);
}

/* Amount and Reference Fields */
.sjmy-amount-field,
.sjmy-reference-field {
    margin-bottom: 25px;
}

/* Search Preview */
.sjmy-search-preview {
    margin: 25px 0;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border: 1px solid var(--medium-gray);
}

.sjmy-search-preview h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
}

.sjmy-preview-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sjmy-preview-item {
    display: flex;
    align-items: baseline;
}

.sjmy-preview-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-right: 10px;
    min-width: 100px;
}

#sjmy-preview-bank, 
#sjmy-preview-date, 
#sjmy-preview-time, 
#sjmy-preview-amount, 
#sjmy-preview-reference {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Search Button */
.sjmy-search-button {
    margin: 30px 0;
    text-align: center;
}

.sjmy-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(19, 136, 113, 0.2);
    min-width: 180px;
    position: relative;
    overflow: hidden;
}

.sjmy-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.6s;
}

.sjmy-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(19, 136, 113, 0.3);
}

.sjmy-btn:hover:before {
    left: 100%;
}

.sjmy-btn:disabled {
    background-color: var(--medium-gray);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.sjmy-claim-btn {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 6px rgba(89, 178, 53, 0.2);
}

.sjmy-claim-btn:hover {
    background-color: #4a9a29; /* Darker green */
    box-shadow: 0 6px 12px rgba(89, 178, 53, 0.3);
}

/* Search Results */
.sjmy-search-results {
    margin: 25px 0;
    padding: 20px;
    background-color: #e5f6ff;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.sjmy-found-info p {
    color: var(--primary-color);
    font-weight: 500;
    margin: 5px 0;
    display: flex;
    align-items: center;
}

.sjmy-found-info p:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23138871' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Claim Reference Fields */
.sjmy-claim-reference {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--medium-gray);
    animation: fadeIn 0.5s ease;
}

.sjmy-so-field,
.sjmy-bi-field {
    margin-bottom: 25px;
}

.sjmy-customer-info {
    margin: 20px 0;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.sjmy-customer-info p {
    margin: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.sjmy-customer-info p:before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23138871' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* Status Message */
.sjmy-status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    display: none;
    animation: fadeIn 0.5s ease;
    position: relative;
    padding-left: 40px;
}

.sjmy-status-message:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.sjmy-status-message.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.sjmy-status-message.success:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
}

.sjmy-status-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

.sjmy-status-message.error:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23e74c3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
}

/* jQuery UI Autocomplete */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 9999;
    padding: 5px 0;
}

.ui-menu-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f5f5f5;
}

.ui-menu-item:last-child {
    border-bottom: none;
}

.ui-menu-item:hover {
    background-color: var(--primary-light);
}

.ui-helper-hidden-accessible {
    display: none;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .sjmy-bank-icons {
        justify-content: center;
    }
    
    .sjmy-bank-item {
        flex: 0 0 calc(20% - 15px);
        min-width: 140px;
    }
    
    .sjmy-preview-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .sjmy-claim-container {
        padding: 15px;
    }
    
    .sjmy-claim-form {
        padding: 20px 15px;
    }
    
    .sjmy-bank-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .sjmy-bank-item {
        flex: 0 0 calc(33.33% - 10px);
        min-width: 120px;
        height: 110px;
    }

    .sjmy-bank-item img {
        width: 60px;
        height: 60px;
    }

    .sjmy-date-time-selection {
        flex-direction: column;
        gap: 15px;
    }
    
    .sjmy-btn {
        padding: 12px 25px;
        font-size: 15px;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .sjmy-bank-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .sjmy-claim-container h2 {
        font-size: 22px;
    }
    
    .sjmy-claim-search-group h3, 
    .sjmy-search-results h3, 
    .sjmy-claim-reference h3 {
        font-size: 18px;
    }
}