/* ========== WRAPPER ========== */
.webyroot-form-wrapper {
    max-width: 720px;
    margin: 20px auto;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== STEPPER ========== */
.webyroot-stepper {
    position: relative;
    margin-bottom: 20px;
    padding: 0 20px;
}

.webyroot-stepper-line {
    position: absolute;
    top: 18px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    z-index: 1;
}

.webyroot-stepper-line-progress {
    height: 100%;
    background: #22c55e;
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.webyroot-stepper-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.webyroot-stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.webyroot-stepper-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 3px solid #d1d5db;
    background: #fff;
    color: #9ca3af;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.webyroot-stepper-item.completed .webyroot-stepper-circle {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.webyroot-stepper-item.active .webyroot-stepper-circle {
    background: #fff;
    border-color: #22c55e;
    color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.webyroot-stepper-label {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.webyroot-stepper-item.completed .webyroot-stepper-label,
.webyroot-stepper-item.active .webyroot-stepper-label {
    color: #374151;
}

.webyroot-stepper-item.completed .webyroot-stepper-circle::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    margin-top: -2px;
}

.webyroot-stepper-item.completed .step-number,
.webyroot-stepper-item.active .step-number {
    display: none;
}

/* ========== CARD ========== */
.webyroot-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 20px rgba(0,0,0,0.05);
    padding: 28px 32px;
    border: 1px solid #f3f4f6;
}

.webyroot-step-content {
    display: none;
}

.webyroot-step-content.active {
    display: block;
    animation: webyrootFadeIn 0.35s ease;
}

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

.webyroot-step-content h3 {
    margin: 0 0 6px 0;
    color: #111827;
    font-size: 22px;
    font-weight: 700;
}

.webyroot-step-content .step-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ========== FORM ELEMENTS ========== */
.webyroot-form-wrapper .form-group {
    margin-bottom: 14px;
}

.webyroot-form-wrapper .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.webyroot-form-wrapper .form-row .form-group {
    margin-bottom: 0;
}

.webyroot-form-wrapper label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.webyroot-form-wrapper input[type=text],
.webyroot-form-wrapper input[type=tel],
.webyroot-form-wrapper input[type=email],
.webyroot-form-wrapper input[type=url],
.webyroot-form-wrapper select,
.webyroot-form-wrapper textarea {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #1f2937;
    background: #fafafa;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
}

.webyroot-form-wrapper input:focus,
.webyroot-form-wrapper select:focus,
.webyroot-form-wrapper textarea:focus {
    border-color: #22c55e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.webyroot-form-wrapper input::placeholder,
.webyroot-form-wrapper textarea::placeholder {
    color: #9ca3af;
}

.webyroot-form-wrapper textarea {
    resize: vertical;
    min-height: 80px;
}

.webyroot-form-wrapper select {
    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='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ========== CHECKBOX CARDS ========== */
.webyroot-form-wrapper .checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.webyroot-form-wrapper .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    text-transform: none;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    letter-spacing: 0;
}

.webyroot-form-wrapper .checkbox-group label:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}

.webyroot-form-wrapper .checkbox-group label:has(input:checked) {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #15803d;
}

.webyroot-form-wrapper .checkbox-group input[type=checkbox] {
    width: 20px;
    height: 20px;
    accent-color: #22c55e;
    flex-shrink: 0;
}

/* ========== FILE UPLOAD ========== */
.webyroot-file-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.webyroot-file-area:hover {
    border-color: #22c55e;
    background: #f0fdf4;
}

.webyroot-file-area input[type=file] {
    display: none;
}

.webyroot-file-icon {
    font-size: 28px;
    margin-bottom: 6px;
    color: #9ca3af;
}

.webyroot-file-text {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.webyroot-file-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ========== BUTTONS ========== */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.btn-next, .btn-prev, .btn-submit {
    padding: 11px 28px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-next {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.btn-next:hover:not(:disabled) {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.btn-prev {
    background: #f3f4f6;
    color: #374151;
}

.btn-prev:hover:not(:disabled) {
    background: #e5e7eb;
}

.btn-submit {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.btn-submit:hover:not(:disabled) {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.btn-next:disabled, .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== MESSAGE ========== */
.webyroot-message {
    margin-top: 24px;
    padding: 18px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    display: none;
}

.webyroot-message.success {
    display: block;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.webyroot-message.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ========== ERRORS ========== */
.webyroot-form-wrapper .error-field {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.webyroot-form-wrapper .error-field:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.webyroot-form-wrapper .error-text {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .webyroot-card { padding: 24px; }
    .webyroot-stepper-label { display: none; }
    .webyroot-stepper-line { left: 30px; right: 30px; }
    .webyroot-form-wrapper .checkbox-group { grid-template-columns: 1fr; }
    .webyroot-form-wrapper .form-row { grid-template-columns: 1fr; }
}
