/*
 * YIARI Donasi Kukang Public CSS
 * Version: 3.1.1
 */

.donasi-kukang-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.donasi-kukang-container * {
    box-sizing: border-box;
}

/* Form styles */
.donasi-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* Doll selection grid */
.dolls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.doll-card {
    text-align: center;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.doll-card:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Quantity controls */
.qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.qty-control button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #ecf0f1;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    color: #2c3e50;
    transition: background-color 0.2s ease;
}

.qty-control button:hover {
    background: #d0d7dd;
}

.qty-display {
    background: #3498db;
    color: white;
    min-width: 36px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
}

/* City search */
.city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.city-suggestion,
.city-option {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.city-suggestion:hover,
.city-option:hover {
    background-color: #f5f5f5;
}

.city-suggestion:last-child,
.city-option:last-child {
    border-bottom: none;
}

/* Summary section */
.summary-section {
    background: rgba(255,255,255,0.95);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
}

/* Submit button */
.submit-section {
    text-align: center;
}

.submit-section button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.submit-section button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.submit-section button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* English form specific styles */
.donasi-kukang-container-en .kukang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.kukang-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.kukang-item:hover {
    border-color: #3d7c47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.kukang-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f0f4f1, #e8f2ea);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.quantity-controls {
    margin-top: 15px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.qty-input {
    width: 60px;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
}

.doll-summary {
    margin-top: 15px;
    padding: 10px;
    background: #f0f4f1;
    border-radius: 6px;
    font-size: 14px;
}

/* Form sections */
.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: #2c5530;
    margin-bottom: 20px;
    border-bottom: 2px solid #3d7c47;
    padding-bottom: 10px;
    font-size: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }

    .form-group {
        min-width: 100%;
    }

    .dolls-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .donasi-form {
        padding: 20px;
    }

    .submit-section button {
        width: 100%;
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .dolls-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .doll-card {
        padding: 15px 10px;
    }

    .qty-control button {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .qty-display {
        min-width: 32px;
        height: 28px;
        font-size: 14px;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error states */
.error {
    border-color: #e74c3c !important;
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
}

/* Success states */
.success {
    border-color: #27ae60 !important;
}

.success-message {
    color: #27ae60;
    font-size: 14px;
    margin-top: 5px;
}