* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Poppins', sans-serif; 
    }

html, body { height: 100%; width: 100%; }

.background {
    background: linear-gradient(180deg, #0b1a4a 0%, #3e1b36 70%, #8b3434 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 120px 20px;
}

.signup-container {
    background: white;
    width: 100%;
    max-width: 1000px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.signup-container h1 {
    color: #0b1a4a;
    text-align: center;
    margin-bottom: 30px;
}

#responderForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.section-label { color: #0b1a4a; margin-bottom: 10px; font-size: 16px; }

/* Member Input UI */
.member-input-grid {
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 20px;
}

.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.input-row input {
    margin-bottom: 0 !important; /* Overrides previous margin */
}

.btn-add-member {
    background: #3e1b36;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

/* Scrollable List */
.members-list-container {
    height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
    background: #fafafa;
}

#visualList { list-style: none; }
.member-entry {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.remove-btn { color: #8b3434; cursor: pointer; border: none; background: none; font-weight: bold; }

/* Inputs & Buttons */
input[type="text"], input[type="email"] {
    width: 100%;
    background: #f3f4f6;
    padding: 14px;
    border: 2px solid transparent;
    border-radius: 10px;
    margin-bottom: 15px;
}

.btn-submit-link {
    width: 100%;
    padding: 16px;
    border-radius: 50px;
    background: #0b1a4a;
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit-link:hover { transform: translateY(-3px); background: #1a2b6d; }

.location-status-box {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.status-indicator { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; font-size: 14px; }

.dot-red { height: 10px; width: 10px; background-color: #ff4d4d; border-radius: 50%; display: inline-block; }
.dot-green { height: 10px; width: 10px; background-color: #10b981; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px #10b981; }

.coords-display { font-family: monospace; font-size: 12px; color: #555; margin-bottom: 10px; }

.btn-refresh-loc {
    width: 100%;
    padding: 8px;
    background: #0b1a4a;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.btn-submit-link {
    transition: all 0.3s ease;
}

.btn-submit-link.success-state {
    background: #10b981 !important;
    transform: scale(1.05);
    pointer-events: none;
}

.btn-submit-link.loading {
    background: #4a5568 !important;
    cursor: not-allowed;
}

.text-link-loc {
    margin-left: auto;
    font-size: 12px;
    color: #0b1a4a;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.text-link-loc:hover {
    color: #8b3434;
}

.location-status-box {
    padding: 12px;
    border: 1px dashed #ccc;
    background: #f9fafb;
}

@media (max-width: 768px) { #responderForm { grid-template-columns: 1fr; } }

