* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #3dcc93 0%, #75ce69 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 600px;
    width: 100%;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
}
.whatsapp-container {
    text-align: center;
    margin-bottom: 30px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3);
}
.whatsapp-button:hover {
    background: #1ebe5d;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    background: #667eea;
    padding: 15px 30px;
    border-radius: 12px;
    text-align: center;
    margin: 0;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    max-width: 500px;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 20px;
}

input[type="text"] {
    width: 100%;
    padding: 16px;
    border: 3px solid #ddd;
    border-radius: 8px;
    font-size: 20px;
    transition: border-color 0.3s;
    font-weight: 500;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

/* Pill Selector Styles */
.pill-selector {
    position: relative;
    display: flex;
    background: #f0f0f0;
    border-radius: 30px;
    padding: 5px;
    margin-bottom: 20px;
    gap: 5px;
    min-height: 62px;
}

.pill-background {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    background: #667eea;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.pill {
    flex: 1;
    padding: 14px 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    color: #555;
    transition: color 0.3s;
    position: relative;
    z-index: 1;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.pill.active {
    color: white;
}

.pill:hover:not(.active) {
    color: #333;
}

.pill span {
    display: block;
    white-space: nowrap;
}

/* Responsive design for pills */
@media (max-width: 600px) {
    .pill {
        font-size: 12px;
        padding: 8px 12px;
    }
}

button {
    width: 100%;
    padding: 18px;
    background: #3dcc93;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    transform: translateY(-2px);
    background: #2eb57f;
    box-shadow: 0 4px 12px rgba(61, 204, 147, 0.3);
}

button:active {
    transform: translateY(0);
}

.result {
    margin-top: 30px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
    font-size: 18px;
}

.result.show {
    display: block;
}

.result h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.result-item {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #667eea;
    display: inline-block;
    min-width: 100px;
}

.result-value {
    color: #555;
}

.error {
    color: #dc3545;
    padding: 18px;
    background: #f8d7da;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    font-size: 18px;
    font-weight: 600;
}

.error.show {
    display: block;
}

.success {
    color: #155724;
    background: #d4edda;
}
.search-btn {
  background: #0d6efd;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-btn:hover {
  background: #0b5ed7;
}
        
.external-link-container {
    text-align: center;
}

.website-link {
    background-color: #667eea;
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.website-link:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

#searchValue {
    max-width: 400px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    .website-link {
        font-size: 16px;
        padding: 12px 24px;
    }

    #searchValue {
        max-width: 100%;
    }

    .main-title {
        font-size: 22px;
        padding: 12px 20px;
    }

    label {
        font-size: 18px;
    }

    input[type="text"] {
        font-size: 18px;
        padding: 14px;
    }

    .pill {
        font-size: 15px;
        padding: 12px 16px;
    }

    button {
        font-size: 20px;
        padding: 16px;
    }
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

.group-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.group-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.modal select, .modal input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.modal select:focus, .modal input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.modal-title {
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}
/* Modal Styles for Group Search */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}


.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.modal select, 
.modal input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.modal select:focus, 
.modal input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
}

.modal-title {
    color: #667eea;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    margin-top: 0;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}
        .back-button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 25px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            margin-bottom: 20px;
            transition: transform 0.2s, box-shadow 0.2s;
            display: inline-flex;
            align-items: center;
            text-decoration: none;
        }

        .back-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
        }

        .form-row {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }

        .form-row .form-group {
            flex: 1;
        }

        select, input[type="number"] {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 16px;
            transition: border-color 0.3s;
            box-sizing: border-box;
        }

        select:focus, input[type="number"]:focus {
            outline: none;
            border-color: #667eea;
        }

        .search-title {
            color: #667eea;
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 25px;
            text-align: center;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #333;
            font-weight: 500;
            font-size: 16px;
        }