/**
 * SYF WooCommerce - Frontend Styles
 */

/* Name fields row - flex container */
.syf-name-fields-row {
    display: flex !important;
    gap: 16px;
    margin-bottom: 0;
}

.syf-name-fields-row .syf-name-field {
    flex: 1 1 0% !important;
    width: auto !important;
    margin: 0 !important;
}

.syf-name-fields-row .syf-name-field input {
    width: 100% !important;
    box-sizing: border-box;
}

/* Phone field direction */
#reg_phone,
#billing_phone {
    direction: ltr;
    text-align: left;
}

/* Verification Notice */
.syf-verification-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 24px !important;
    border-radius: 8px !important;
    margin-bottom: 24px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-right: 4px solid #d1a115 !important;
    /* LTR right border, assuming RTL theme might flip it so I'll add border-inline-start */
    border-inline-start: 4px solid #d1a115 !important;
    border-right: none !important;
    border-left: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    color: #334155 !important;
    font-size: 15px;
}

html[dir="rtl"] .syf-verification-notice {
    border-right: 4px solid #d1a115 !important;
}

html[dir="ltr"] .syf-verification-notice {
    border-left: 4px solid #d1a115 !important;
}

.syf-notice-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.syf-resend-link {
    margin-inline-start: auto;
    font-weight: 500;
    color: #fff !important;
    background-color: #d1a115 !important;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 14px;
    transition: all 0.2s ease;
}

.syf-resend-link:hover {
    background-color: #b0870f !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

/* Code Verification Form */
.syf-verify-code-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.syf-verify-code-form h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e1b4b;
    margin: 0 0 8px;
}

.syf-verify-code-form p {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 24px;
}

.syf-code-input-wrapper {
    margin-bottom: 20px;
}

.syf-code-input {
    width: 200px !important;
    text-align: center;
    font-size: 28px !important;
    font-weight: 700 !important;
    letter-spacing: 8px;
    padding: 12px 20px !important;
    border: 2px solid #d1d5db !important;
    border-radius: 10px !important;
    direction: ltr;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.syf-code-input:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12) !important;
    outline: none;
}

.syf-verify-btn {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 32px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s;
}

.syf-verify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Responsive */
@media (max-width: 600px) {

    .syf-name-fields-row {
        flex-direction: column !important;
        gap: 0;
    }

    .syf-code-input {
        width: 160px !important;
        font-size: 24px !important;
    }
}

/* Multi-Step Forms */
.syf-multi-step-wrapper {
    margin-bottom: 2rem;
}

ul.syf-progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    counter-reset: step;
    display: flex;
    justify-content: space-between;
    padding: 0;
    list-style: none;
}

ul.syf-progressbar li {
    list-style-type: none;
    color: #4b5563;
    text-transform: uppercase;
    font-size: 11px;
    width: 50%;
    float: left;
    position: relative;
    text-align: center;
    font-weight: 600;
}

ul.syf-progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 28px;
    height: 28px;
    line-height: 28px;
    display: block;
    font-size: 13px;
    color: #fff;
    background: #e5e7eb;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    position: relative;
    z-index: 2;
}

ul.syf-progressbar li:after {
    content: '';
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    position: absolute;
    left: -50%;
    top: 12px;
    z-index: 1;
}

ul.syf-progressbar li:first-child:after {
    content: none;
}

ul.syf-progressbar li.active:before,
ul.syf-progressbar li.active:after,
ul.syf-progressbar li.completed:before,
ul.syf-progressbar li.completed:after {
    background: #d1a115;
    color: white;
}

ul.syf-progressbar li.active {
    color: #d1a115;
}

ul.syf-progressbar li.completed {
    color: #d1a115;
}

.syf-notice {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.syf-notice-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.syf-notice-success {
    background: #dcfce3;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.syf-step-container {
    margin-bottom: 20px;
}

.syf-btn-primary {
    background: #d1a115 !important;
    color: #fff !important;
    border: none;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.syf-btn-primary:hover {
    background: #b0870f !important;
}

.syf-btn-secondary {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.syf-btn-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.syf-code-input-lg {
    letter-spacing: 8px;
    font-size: 24px !important;
    text-align: center;
    font-weight: bold;
}