/* WeCann Forms Styles */

.wcf-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Progress Bar */
.wcf-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wcf-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e0e0e0;
    z-index: 0;
}

.wcf-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.wcf-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.wcf-progress-step.active .wcf-step-number {
    background-color: #4CAF50;
    color: white;
}

.wcf-progress-step.completed .wcf-step-number {
    background-color: #2196F3;
    color: white;
}

.wcf-step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    max-width: 120px;
}

.wcf-progress-step.active .wcf-step-label {
    color: #333;
    font-weight: 600;
}

/* Form */
.wcf-form {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wcf-step {
    display: none;
}

.wcf-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcf-form-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    text-align: center;
}

/* Form Groups */
.wcf-form-group {
    margin-bottom: 20px;
}

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

.wcf-required {
    color: #f44336;
    margin-left: 2px;
}

.wcf-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wcf-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.wcf-input.error {
    border-color: #f44336;
}

.wcf-error {
    display: block;
    color: #f44336;
    font-size: 13px;
    margin-top: 6px;
    min-height: 18px;
}

/* Select customization */
select.wcf-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Buttons */
.wcf-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    justify-content: flex-end;
}

.wcf-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.wcf-btn-primary {
    background-color: #4CAF50;
    color: white;
}

.wcf-btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.wcf-btn-primary:active {
    transform: translateY(0);
}

.wcf-btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.wcf-btn-secondary {
    background-color: #f5f5f5;
    color: #333;
}

.wcf-btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Loading */
.wcf-loading {
    text-align: center;
    padding: 40px 20px;
}

.wcf-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Success Message */
.wcf-success-message {
    text-align: center;
    padding: 40px 20px;
}

.wcf-success-icon {
    width: 80px;
    height: 80px;
    background-color: #4CAF50;
    color: white;
    font-size: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.wcf-success-message h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 12px;
}

.wcf-success-message p {
    color: #666;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .wcf-container {
        padding: 10px;
        margin: 20px auto;
    }

    .wcf-form {
        padding: 20px;
    }

    .wcf-form-title {
        font-size: 20px;
    }

    .wcf-progress-bar {
        margin-bottom: 30px;
    }

    .wcf-step-label {
        font-size: 11px;
        max-width: 80px;
    }

    .wcf-step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .wcf-form-actions {
        flex-direction: column-reverse;
    }

    .wcf-btn {
        width: 100%;
    }
}

/* Accessibility */
.wcf-input:focus-visible {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.wcf-btn:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}
