/* AC Anketa Styles */

.ac-anketa-form-wrapper {
    max-width: 800px;
    margin: 2em auto;
    padding: 30px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4) !important;
    border-radius: 12px;
}

/* Custom focus styles */
*:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(182, 156, 102, 0.3);
}

/* Email input */
.ac-anketa-email input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ac-anketa-email input[type="email"]:focus {
    border-color: #b69c66;
}

/* Loading spinner */
.ac-anketa-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.ac-anketa-loading:after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #b69c66;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Progress bar */
.ac-anketa-progress {
    margin-bottom: 2em;
}

.ac-anketa-progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 1em;
    overflow: hidden;
}

.ac-anketa-progress-fill {
    height: 100%;
    background: #b69c66;
    transition: width 0.3s ease;
}

.ac-anketa-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.ac-anketa-progress-step {
    text-align: center;
    flex: 1;
    position: relative;
}

.ac-anketa-progress-step .step-number {
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #eee;
    display: inline-block;
    margin-bottom: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.ac-anketa-progress-step.active .step-number {
    background: #b69c66;
    color: #fff;
}

.ac-anketa-progress-step .step-label {
    display: block;
    font-size: 0.9em;
    color: #666;
}

/* Questions */
.ac-anketa-step {
    display: none;
}

.ac-anketa-step h2 {
    font-size: 22px;
    font-weight: 600;
}

.ac-anketa-step.active {
    display: block;
}

.ac-anketa-intro {
    margin-bottom: 2em;
}

.ac-anketa-intro ul {
    margin-left: 1.5em;
}

.ac-anketa-scale {
    margin: 1em 0;
    padding: 0;
    list-style: none;
}

.ac-anketa-scale li {
    margin: 0.5em 0;
}

.ac-anketa-questions h3 {
    font-size: 20px;
    font-weight: 600;
}

.ac-anketa-question {
    margin-bottom: 2em;
    padding: 1em;
    background: #f9f9f9;
    border-radius: 4px;
}

.question-text {
    margin-bottom: 1em;
    font-size: 1.1em;
}

/* Rating */
.ac-anketa-rating {
    display: flex;
    justify-content: space-between;
    /* max-width: 300px; */
    margin: 0 auto;
}

.rating-option {
    text-align: center;
    cursor: pointer;
}

.rating-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.rating-value {
    display: block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 8px;
    border: 2px solid #ddd;
    background: #fff;
    transition: all 0.2s ease;
    font-weight: 500;
}

.rating-option:hover .rating-value {
    border-color: #b69c66;
    background: rgba(182, 156, 102, 0.1);
}

.rating-option input[type="radio"]:checked + .rating-value {
    background: #b69c66;
    border-color: #b69c66;
    color: #fff;
    box-shadow: 0 2px 4px rgba(182, 156, 102, 0.3);
}

.rating-option input[type="radio"]:focus + .rating-value {
    box-shadow: 0 0 0 2px rgba(182, 156, 102, 0.3);
}

/* Navigation */
.ac-anketa-navigation {
    margin-top: 2em;
    display: flex;
    justify-content: space-between;
}

.ac-anketa-navigation button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.ac-anketa-navigation button.next,
.ac-anketa-navigation button.submit {
    background-color: #b69c66;
    color: white;
}

.ac-anketa-navigation button.next:hover,
.ac-anketa-navigation button.submit:hover {
    background-color: #8c7441;
}

.ac-anketa-navigation button.prev {
    background-color: #f0f0f0;
    color: #666;
}

.ac-anketa-navigation button.prev:hover {
    background-color: #e0e0e0;
}

.ac-anketa-navigation button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Results */
.ac-anketa-scores {
    display: flex;
    justify-content: space-around;
    margin: 2em 0;
}

.score-box {
    text-align: center;
    padding: 1.5em;
    background: #f9f9f9;
    border-radius: 8px;
    min-width: 200px;
}

.score-box h3 {
    margin: 0 0 1em;
    color: #666;
}

.score-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #b69c66;
}

.ac-anketa-recommendation {
    margin: 2em 0;
    padding: 1.5em;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.ac-anketa-graph {
    margin: 2em 0;
}

.ac-anketa-email-sent {
    text-align: center;
    margin: 2em 0;
}

/* Step4? */
#ac-anketa-form input[type="text"],
#ac-anketa-form select {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
  font-size: 16px;
  margin-bottom: 16px;
  transition: border-color 0.3s ease;
}

#ac-anketa-form input[type="text"] {
    background-color: #fff!important;
}

#ac-anketa-form input[type="text"]:focus,
#ac-anketa-form select:focus {
  outline: none;
  border-color: #b69c66;
}


.ac-anketa-radio-group {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
  }
  .ac-anketa-radio-group label {
    cursor: pointer;
  }

  .osobno .ac-anketa-rating {
    margin: 0;
  }

  .osobno .rating-value {
    width: 70px;
  }
  

#recommendationText {
    white-space: pre-line;
    line-height: 1.6;
    font-size: 16px;
}
/* Admin styles */
.ac-anketa-dashboard {
    margin-top: 1em;
}

.ac-anketa-questions-tabs {
    margin: 1em 0;
}

.ac-anketa-question-form,
.ac-anketa-recommendation-form {
    margin: 1em 0;
    padding: 1em;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-field {
    margin-bottom: 1em;
}

.form-actions {
    margin-top: 1em;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-email-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5em;
}

.status-active {
    color: #46b450;
}

.status-inactive {
    color: #dc3232;
}


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

/* Responsive */
@media (max-width: 600px) {
    .ac-anketa-scores {
        flex-direction: column;
        gap: 1em;
    }
    
    .score-box {
        min-width: auto;
    }
    
    .ac-anketa-progress-step .step-label {
        display: none;
    }
    
    .ac-anketa-rating {
        max-width: 250px;
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 20px;
    }
    
    .rating-value {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }

    .ac-anketa-navigation {
        gap: 10px;
    }
}
