* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #f4f4f4;
    padding: 0 12px;
}

/* Top Bar */
.top-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.top-bar h3 {
    color: #cc0000;
    font-weight: 600;
}

.back-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    cursor: pointer;
}

/* Center Container */
.container {
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    box-sizing: border-box;
}

.form-box {
    background: #ffffff;
    width: 100%;
    max-width: 460px;
    padding: 35px 24px;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    text-align: center;
    box-sizing: border-box;
}

.icon-box {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    border-radius: 15px;
    background: #ffe5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.search {
    background: #ffe5e5;
}

h2 {
    margin-bottom: 5px;
}

.subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

form {
    text-align: left;
}

label {
    display: block;
    margin-top: 12px;
    font-size: 14px;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

input:focus, select:focus {
    border-color: #cc0000;
    outline: none;
}

.row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.col {
    flex: 1;
}

button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn {
    background: linear-gradient(to right, #e60000, #cc0000);
    color: white;
}

.search-btn:hover {
    opacity: 0.9;
}

/* Search Result Cards */
.donor-card {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    margin-top: 15px;
    text-align: left;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.donor-info h4 {
    color: #cc0000;
    margin-bottom: 5px;
}

.donor-info p {
    font-size: 13px;
    color: #666;
}

.call-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.call-btn:hover {
    background: #218838;
    transform: scale(1.05);
}

.msg-btn {
    background: #333;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.msg-btn:hover {
    background: #000;
    transform: scale(1.05);
}

#globalChatBox {
    animation: chatSlideIn 0.3s ease-out;
}

@keyframes chatSlideIn {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}