/* Public styles for Camping Ankete */
.camping-ankete-form {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Override any theme styles */
.camping-ankete-form * {
    box-sizing: border-box;
}

/* Custom color scheme */
.camping-primary {
    color: #014550 !important;
}

.camping-primary-bg {
    background-color: #014550 !important;
}

.camping-secondary {
    color: #B28331 !important;
}

.camping-secondary-bg {
    background-color: #B28331 !important;
}

/* Form styling */
.camping-ankete-form .form-group {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    position: relative;
    min-height: 4rem;
}

.camping-ankete-form .form-section {
    display: block;
    width: 100%;
}

.camping-ankete-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #014550;
    font-size: 1.05rem;
    line-height: 1.5;
}

.camping-ankete-form input[type="text"],
.camping-ankete-form input[type="email"],
.camping-ankete-form select,
.camping-ankete-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: white;
    display: block;
}

.camping-ankete-form input:focus,
.camping-ankete-form select:focus,
.camping-ankete-form textarea:focus {
    outline: none;
    border-color: #014550;
    box-shadow: 0 0 0 3px rgba(1, 69, 80, 0.1);
}

/* Rating input styling */
.rating-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Rating scale labels */
.rating-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 400;
}

.rating-label-min {
    margin-right: 0.5rem;
}

.rating-label-max {
    margin-left: 0.5rem;
}

.rating-input {
    display: flex;
    gap: 0.5rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 0;
    min-width: 2.5rem;
    text-align: center;
}

.rating-input label:hover {
    border-color: #B28331;
    background-color: #fef3c7;
}

.rating-input input[type="radio"]:checked + label {
    background-color: #014550;
    border-color: #014550;
    color: white;
}

/* Yes/No buttons */
.yes-no-group {
    display: flex;
    gap: 1rem;
}

.yes-no-group input[type="radio"] {
    display: none;
}

.yes-no-group label {
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 0;
    flex: 1;
    text-align: center;
}

.yes-no-group label:hover {
    border-color: #B28331;
    background-color: #fef3c7;
}

.yes-no-group input[type="radio"]:checked + label {
    background-color: #014550;
    border-color: #014550;
    color: white;
}

/* Choice buttons */
.choice-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Countries dropdown specific styling */
select[name*="countries"],
select[name*="zemlje"] {
    max-height: 200px;
    overflow-y: auto;
}

.choice-group input[type="radio"],
.choice-group input[type="checkbox"] {
    display: none;
}

.choice-group label {
    cursor: pointer;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 0;
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.choice-group label:hover {
    border-color: #B28331;
    background-color: #fef3c7;
}

.choice-group input[type="radio"]:checked + label,
.choice-group input[type="checkbox"]:checked + label {
    background-color: #014550;
    border-color: #014550;
    color: white;
}

/* Checkbox specific styling */
.choice-group input[type="checkbox"]:checked + label::before {
    content: "✓";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Submit button */
.submit-button {
    background-color: #014550;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 2rem;
}

.submit-button:hover {
    background-color: #023945;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 69, 80, 0.3);
}

.submit-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Progress indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

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

.progress-step::before {
    content: '';
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    display: block;
    margin: 0 auto 0.5rem;
    transition: background-color 0.3s ease;
}

.progress-step.active::before {
    background-color: #014550;
}

.progress-step.completed::before {
    background-color: #B28331;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success message */
.success-message {
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.success-message h3 {
    margin: 0 0 0.5rem 0;
    color: #065f46;
}

/* Error message */
.error-message {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .camping-ankete-form {
        padding: 1rem;
    }
    
    .rating-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-input {
        flex-wrap: wrap;
    }
    
    .yes-no-group {
        flex-direction: column;
    }
}

/* Animation for form sections */
.form-section {
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom checkbox styling for terms */
.terms-checkbox {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.terms-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Language selector */
.language-selector {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.language-selector select {
    max-width: 200px;
    margin: 0 auto;
}