/* Ionmara Feedback - Same Style as Ionmara Warranty */
.ionmara-feedback-container {
    max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Form Container - Same as warranty claim */
.ionmara-feedback-form-container {
    background: #f8f9fa;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
}

.ionmara-feedback-form {
    width: 100%;
}

/* Form Layout - Same as warranty claim */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

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

.form-group.full-width {
    flex: 1 1 100%;
}

/* Form Elements - Same as warranty claim */
.form-group label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control.auto-filled {
    background-color: #e8f5e8;
    border-color: #28a745;
}

.form-control.auto-filled:focus {
    background-color: #e8f5e8;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #EF4136;
    box-shadow: 0 0 0 3px rgba(239, 65, 54, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6c757d;
}

/* Required field indicator */
.required {
    color: #EF4136;
    margin-left: 2px;
}

/* Help Text */
.form-help {
    display: block;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 6px;
    margin-bottom: 0;
}

/* Error Messages */
.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 500;
}

/* Rating System - Integrated with warranty style */
.ionmara-feedback-rating-group {
    margin-bottom: 20px;
}

.ionmara-feedback-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.95rem;
    margin-top: 20px !important;
}

.ionmara-feedback-rating-stars {
    display: flex;
  gap: 0px;
  justify-content: flex-start;
  margin-top: 0px;
}

.ionmara-feedback-star {
    font-size: 50px;
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  line-height: 1;
}

.ionmara-feedback-star:hover {
    color: #ffc107;
    transform: scale(1.1);
}

.ionmara-feedback-star.active {
    color: #ffc107;
}

.ionmara-feedback-star.hover {
    color: #ffc107;
    opacity: 0.7;
}

.ionmara-feedback-rating-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 8px;
    text-align: left;
    font-weight: 500;
    display:none;
}

/* Submit Section - Same as warranty claim */
.submit-section {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
}

.ionmara-feedback-submit {
    background: #EF4136;
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 250px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ionmara-feedback-submit:hover:not(:disabled) {
    background: #d6341f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 65, 54, 0.3);
}

.ionmara-feedback-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading State */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Message Containers - Same as warranty claim */
.message-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.message-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    font-weight: bold;
}

.success .message-icon {
    background: #d4edda;
    color: #28a745;
}

.error .message-icon {
    background: #f8d7da;
    color: #dc3545;
}

.message-container h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.success h2 {
    color: #155724;
}

.error h2 {
    color: #721c24;
}

/* Messages - Inline version */
.ionmara-feedback-message {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

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

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

.ionmara-feedback-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feedback button shortcode */
.ionmara-feedback-button {
  display: inline-block;
  padding: 15px 50px;
  background-color: #ee3f35;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0px auto;
  width: 100%;
}

.ionmara-feedback-button:hover {
    background-color: #d3382f; /* sedikit lebih gelap */
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.ionmara-feedback-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

/* Responsive Design - Same as warranty claim */
@media (max-width: 768px) {
    .ionmara-feedback-container {
        padding: 15px;
    }
    
    .ionmara-feedback-form-container {
        padding: 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group {
        min-width: auto;
        margin-bottom: 0px;
    }
    
    .ionmara-feedback-rating-stars {
        gap: 10px;
    }
    
    .ionmara-feedback-star {
        font-size: 28px;
    }
    
    .ionmara-feedback-submit {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .ionmara-feedback-form-container {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
    }
    
    .ionmara-feedback-star {
        font-size: 24px;
    }
    
    .ionmara-feedback-submit {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* Accessibility */
.ionmara-feedback-star:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.ionmara-feedback-submit:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-group input,
    .form-group textarea {
        border-width: 3px;
    }
    
    .ionmara-feedback-star {
        border: 1px solid transparent;
    }
    
    .ionmara-feedback-star:focus {
        border-color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ionmara-feedback-star,
    .ionmara-feedback-submit,
    .form-group input,
    .form-group textarea,
    .ionmara-feedback-message {
        transition: none;
        animation: none;
    }
    
    .spinner {
        animation: none;
        border: 2px solid #ffffff;
        border-top-color: #000;
    }
}
