/**
 * Register Page Styles
 * Page-specific styles for the user registration page
 *
 * NOTE: Form elements are in base/forms.css and components/
 * This file contains ONLY register-specific styles
 */

/* ============================================
   PAGE WRAPPER
   ============================================ */
.site-main.register-page,
#main.register-page {
    background: var(--bg-gray-light);
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 !important;
}

.register-page .elementor-container,
.register-page .elementor-row,
.register-page .elementor-column,
.register-page .elementor-section {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

/* ============================================
   OVERRIDE GLOBAL STYLES
   ============================================ */
/* Reset body padding-top on register page */
body.page-template-page-register {
    padding-top: 0 !important;
}

/* ============================================
   USER TYPE SELECTION (Register-specific)
   ============================================ */
.user-type-selection {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.user-type-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 6px 13px;
    border-radius: 8px;
    border: none;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-type-btn.active {
    background: var(--color-secondary);
}

.user-type-btn:not(.active) {
    background: rgba(128, 128, 128, 0.58);
}

.user-type-btn:hover {
    opacity: 0.9;
    background: var(--color-secondary);
}

.user-type-btn:focus {
    background: var(--color-secondary);
}

.user-type-btn .check-icon {
    display: none;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-text-light);
}

.user-type-btn.active .check-icon {
    display: block;
}

.user-type-btn .check-icon img {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0) invert(1);
}

/* ============================================
   FORM SECTION SPACING (Register-specific)
   ============================================ */
.register-page .form-section {
    margin-bottom: 16px;
}

.register-page .section-title {
    margin: 0 0 7px 0;
}

.register-page .form-row {
    margin-bottom: 8px;
}

/* ============================================
   TAG INPUT STYLES
   ============================================ */
.tag-input-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px 14px !important;
    min-height: 40px;
    height: auto !important;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    background: #fff;
    cursor: text;
}

.tag-input-wrapper:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(16, 141, 82, 0.1);
}

.tag-input-wrapper .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.tag-input-wrapper .tag-text-input {
    border: none !important;
    outline: none !important;
    flex: 1;
    min-width: 120px;
    padding: 4px 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 12px;
    height: auto !important;
}

.tag-input-wrapper .tag-text-input:focus {
    border: none !important;
    box-shadow: none !important;
}

.tag-input-wrapper .tag-chip {
    display: inline-flex;
    align-items: center;
    background: #E8F5E9;
    color: #2E7D32;
    padding: 0px 8px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    gap: 6px;
    border: 1px solid #A5D6A7;
}

.tag-input-wrapper .tag-remove {
    cursor: pointer;
    font-weight: bold;
    opacity: 0.6;
    padding: 0 2px;
    line-height: 1;
    font-size: 16px;
    color: #2E7D32;
}

.tag-input-wrapper .tag-remove:hover {
    opacity: 1;
    color: #1B5E20;
}

.tag-input-wrapper .tags-autocomplete {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    background: #fff;
    border: 1px solid #D1D5DB;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 1px;
}

.tag-input-wrapper .tags-autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-input-wrapper .tags-autocomplete-item:hover,
.tag-input-wrapper .tags-autocomplete-item.selected {
    background-color: #f9fafb;
}

.tag-input-wrapper .tags-autocomplete-item:last-child {
    border-bottom: none;
}

.tag-input-wrapper .tags-autocomplete-icon {
    color: var(--primary-green);
    font-weight: bold;
    font-size: 16px;
}

.tag-input-wrapper .tags-autocomplete-create {
    font-weight: 500;
    color: var(--primary-green);
}

.tag-input-wrapper .tags-autocomplete-create strong {
    font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .user-type-selection {
        justify-content: center;
        gap: 8px;
    }

    .user-type-btn {
        flex: 1;
        font-size: 14px;
        padding: 6px 10px;
        height: 36px;
    }
}
