/* ========================================
   SocialHub - Global Form Styles
   C:\wamp64\www\site\hub\assets\css\forms.css
   ======================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Standardized Inputs using the "Color and Shape" from Jobs dashboard */
.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: 12px; /* The "Shape" user liked */
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-control:focus {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
    background: var(--bg-hover);
}

/* Fix for "White on White" text in native browser dropdown lists */
.form-control option {
    background-color: var(--bg-card); /* Solid background for the list */
    color: var(--text-color);
    padding: 10px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Helpers to make Custom Panel Dropdowns look like Form Inputs */
.form-dropdown .dropdown-trigger {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: 12px;
    height: 44px; /* Match standard input height */
    min-width: unset;
}
.form-dropdown .dropdown-trigger:hover { border-color: var(--accent-cyan); }

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2300d4ff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

.hub-form-section {
    background: var(--bg-hover);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.hub-form-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hub-form-label i {
    color: var(--accent-cyan);
    font-size: 14px;
}

.hub-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--accent-cyan);
    cursor: pointer;
}

/* ========================================
   Enhanced Top Post Form (Mirroring Messenger UI)
   ======================================== */

.sh-message-form.main-post-form {
    width: 100%;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sh-message-form.main-post-form:focus-within {
    transform: translateY(-5px);
}

.main-post-form .sh-input-wrapper {
    position: relative;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.main-post-form .sh-input-wrapper:focus-within {
    background: var(--bg-hover);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.main-post-form .sh-message-input {
    min-height: 120px !important; /* Increased height */
    padding: 18px 18px 60px 18px !important; /* Bottom padding for button shelf */
    background: transparent !important;
    border: none !important;
    color: var(--text-color) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    resize: none;
    outline: none !important;
    box-shadow: none !important;
}

/* Postcode Lookup UI */
.address-lookup-wrapper {
    margin-bottom: 25px;
    background: var(--bg-hover);
    padding: 20px;
    border-radius: 16px;
    border: 1px dashed var(--glass-border);
}

.postcode-lookup-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.postcode-lookup-group .btn { width: auto !important; height: 44px; margin-top: 0; white-space: nowrap; padding: 0 20px; }