/* Use unique class names for the widget to avoid conflicts */
.submit-code-widget-container {
    max-width: 350px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    background: none;
    box-shadow: none;
}

.submit-code-widget-container h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #222;
    text-align: center;
    letter-spacing: 0.01em;
}

.submit-code-form-widget {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: none;
}

.form-group-widget {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group-widget label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.input-wrapper-widget {
    position: relative;
    width: 100%;
}

.input-wrapper-widget input {
    width: 100%;
    padding: 12px 38px 12px 12px;
    font-size: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #f9fafb;
    transition: border 0.2s, background 0.2s;
    font-family: inherit;
}
.input-wrapper-widget input:focus {
    border-color: #1976d2;
    background: #fff;
    outline: none;
}
.checkmark-widget {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #00c48c;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s;
}
.input-wrapper-widget input:valid + .checkmark-widget {
    opacity: 1;
}

.timer-container-widget {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    font-size: 15px;
    color: #666;
    margin-bottom: 2px;
    margin-top: -8px;
}
#code-timer {
    font-weight: 600;
    color: #1976d2;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}
.timer-label-widget {
    font-size: 13px;
    color: #888;
}

.btn-submit-code-widget {
    width: 100%;
    background-color: #1976d2;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2px;
    margin-bottom: 10px;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    letter-spacing: 0.02em;
}
.btn-submit-code-widget:hover {
    background-color: #125ea2;
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.12);
}
.btn-submit-code-widget.disabled-timer {
    background: #e0e0e0 !important;
    color: #b0b0b0 !important;
    cursor: not-allowed;
    border: none;
    box-shadow: none;
    opacity: 1;
}

.edit-email-btn-widget {
    width: 100%;
    background: none;
    border: none;
    color: #1976d2;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    margin-top: 2px;
    margin-bottom: 0;
    text-decoration: underline;
    transition: color 0.18s;
    padding: 8px 0 0 0;
    border-radius: 6px;
}
.edit-email-btn-widget:hover {
    color: #125ea2;
    background: #f4f8fb;
}

.resend-code-btn-widget {
    margin-left: 12px;
    background: none;
    border: none;
    color: #1976d2;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    opacity: 1;
    transition: color 0.18s, opacity 0.2s;
    padding: 0;
}
.resend-code-btn-widget:disabled {
    color: #b0b0b0;
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: none;
}
.resend-code-btn-widget:hover:not(:disabled) {
    color: #125ea2;
    background: #f4f8fb;
}

#submit-code-error {
    font-size: 13px;
    color: #c00;
    margin: 0 0 4px 0;
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .submit-code-widget-container {
        max-width: 98vw;
        padding: 16px 4vw;
    }
}
