/**
 * SMS Login & Business Wizard Styles
 * Based on Naghle Haml color scheme
 */

.nh-sms-login-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    font-family: sans-serif;
}

.nh-sms-login-container h3,
.nh-sms-login-container h2 {
    text-align: center;
    color: #1c2d4f;
    margin-top: 0;
    margin-bottom: 15px;
}

.nh-sms-login-container p {
    text-align: center;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.nh-sms-login-container .form-row {
    margin-bottom: 20px;
}

.nh-sms-login-container label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.nh-sms-login-container input[type="tel"],
.nh-sms-login-container input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: left;
    direction: ltr;
    font-size: 16px;
    box-sizing: border-box;
}

.nh-sms-login-container .button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    transition: background-color 0.3s ease;
}

.nh-sms-login-container .button-primary {
    background-color: #1c2d4f;
    color: #fff;
}

.nh-sms-login-container .button-primary:hover:not(:disabled) {
    background-color: #e6b02c;
}

.nh-sms-login-container .button-secondary {
    background-color: #f5f4ef;
    color: #1c2d4f;
    border: 2px solid #1c2d4f;
}

.nh-sms-login-container .button-secondary:hover:not(:disabled) {
    background-color: #1c2d4f;
    color: #fff;
}

.nh-sms-login-container .button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.nh-form-feedback p {
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    margin: 10px 0 0;
}

.nh-form-feedback p.error {
    background-color: #f8d7da;
    color: #721c24;
}

.nh-form-feedback p.success {
    background-color: #d4edda;
    color: #155724;
}

.nh-form-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.nh-form-links a {
    color: #1c2d4f;
    text-decoration: none;
}

.nh-form-links a:hover {
    text-decoration: underline;
}

.nh-already-loggedin .loggedin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nh-already-loggedin .loggedin-actions .button {
    width: calc(50% - 5px);
}

/* Wizard specific styles */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wizard-steps-indicator {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.step-indicator {
    color: #aaa;
    font-weight: bold;
}

.step-indicator.active {
    color: #1c2d4f;
}

#nh-business-suggestions {
    margin-top: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
}

#nh-business-suggestions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#nh-business-suggestions li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

#nh-business-suggestions li:last-child {
    border-bottom: none;
}

#nh-business-exists-message {
    border: 1px solid #e6b02c;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    background: #fff3cd;
}

#nh-business-exists-message p {
    text-align: right;
    margin-bottom: 10px;
}

#nh-business-exists-message .button {
    width: auto;
    display: inline-block;
}

.wizard-navigation {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.wizard-prev-btn,
.wizard-next-btn {
    width: auto !important;
    padding: 10px 20px !important;
}

.acf-field-post-title input[readonly] {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.nh-message.success {
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border: 1px solid;
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    text-align: center;
}

.acf-loading-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

@media (max-width: 600px) {
    .nh-sms-login-container {
        margin: 20px auto;
        padding: 20px;
    }
    
    .nh-already-loggedin .loggedin-actions .button {
        width: 100%;
    }
}
