/* ===================================
   Owner Registration Page Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #007BFF 0%, #0062CC 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    color: white;
    padding: 20px 0;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

/* Registration Card */
.register-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Steps */
.step {
    display: none;
}

.step.active {
    display: block;
}

.step.hidden {
    display: none;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #007BFF, #0062CC);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.step-header h2 {
    font-size: 20px;
    color: #212121;
}

.step-desc {
    color: #757575;
    font-size: 14px;
    margin-bottom: 25px;
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007BFF;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.status-hint.available {
    color: #0062cc;
}

.status-hint.taken {
    color: #E53935;
}

.status-hint.checking {
    color: #757575;
}

/* Error Message */
.error-message {
    background: #FFEBEE;
    color: #C62828;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.error-message.hidden {
    display: none;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #007BFF, #0062CC);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #757575;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-secondary:hover {
    border-color: #007BFF;
    color: #007BFF;
}

.btn-loading {
    display: none;
}

.btn-text.hidden {
    display: none;
}

.btn-loading.hidden {
    display: none;
}

/* Step Footer */
.step-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.step-footer p {
    color: #757575;
    font-size: 14px;
}

.step-footer a {
    color: #007BFF;
    font-weight: 600;
    text-decoration: none;
}

.step-footer a:hover {
    text-decoration: underline;
}

/* Owner Info Box */
.owner-info {
    background: linear-gradient(135deg, #e6f2ff, #cce4ff);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.owner-badge {
    display: inline-block;
    background: #0062cc;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.owner-info p {
    color: #004a99;
    margin-bottom: 5px;
}

.owner-info strong {
    font-size: 18px;
}

.unit-info {
    font-size: 14px;
    opacity: 0.8;
}

/* Form Divider */
.form-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.form-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.form-divider span {
    background: white;
    padding: 0 15px;
    color: #9e9e9e;
    font-size: 13px;
    position: relative;
}

/* Contact divider with red color */
.form-divider.contact-divider::before {
    background: #FFCDD2;
}

.form-divider.contact-divider span {
    color: #C62828;
    font-weight: 600;
}

/* Not Found / Already Registered / Success States */
.not-found-icon,
.already-icon,
.success-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 20px;
}

#notFoundState h2,
#alreadyRegisteredState h2,
#successState h2 {
    text-align: center;
    color: #212121;
    font-size: 22px;
    margin-bottom: 10px;
}

#notFoundState p,
#alreadyRegisteredState p,
#successState p {
    text-align: center;
    color: #757575;
    margin-bottom: 10px;
}

.not-found-desc,
.already-desc,
.success-desc {
    margin-bottom: 25px !important;
    font-size: 14px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .register-card {
        padding: 20px;
        border-radius: 15px;
    }

    .header h1 {
        font-size: 20px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }
}

/* ===================================
   Survey choice buttons (registration survey-completion step)
   =================================== */
/* Conditional fields use .hidden — register.css only hides .step/.error-message
   by default, so make .hidden hide form groups too. */
.form-group.hidden,
#renovationSection.hidden {
    display: none;
}

.choice-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.choice-btn {
    flex: 1 1 0;
    min-width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    background: #fafafa;
    color: #424242;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
    user-select: none;
    position: relative;
}

.choice-btn .choice-emoji {
    font-size: 20px;
    line-height: 1;
}

.choice-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.choice-btn:hover {
    border-color: #007BFF;
    background: #eef6ff;
}

/* Selected state — works via :has() and a JS-toggled .selected fallback */
.choice-btn:has(input:checked),
.choice-btn.selected {
    border-color: #0062CC;
    background: linear-gradient(135deg, #007BFF, #0062CC);
    color: #fff;
    box-shadow: 0 5px 14px rgba(0, 98, 204, 0.28);
    transform: translateY(-1px);
}

.choice-btn:has(input:checked) .choice-emoji,
.choice-btn.selected .choice-emoji {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.choice-btn:active {
    transform: scale(0.98);
}